Menu

#513 Retain original source formatting doesn't work

closed-duplicate
nobody
5
2010-04-04
2009-10-16
No

I used to write or modify the html code on my own but when I save the Kompozer modifys the code:

<a
href="http://www.facebook.com/album.php?page=2&amp;aid=2020741&amp;id=1472577616#/home.php?ref=home"
target="_blank">facebook</a><br>
<a
href="http://www18.imperiaonline.org/imperia/game/novini.php?games=ok?rand=1221"
target="_blank">Imperia Online:</a><span
style="color: rgb(153, 102, 51);"> Juego Medieval de Estrategia</span><br>
<br>

and I want this:

<a href="http://www.facebook.com/album.php?page=2&amp;aid=2020741&amp;id=1472577616#/home.php?ref=home" target="_blank">facebook</a><br>
<a href="http://www18.imperiaonline.org/imperia/game/novini.php?games=ok?rand=1221" target="_blank">Imperia Online:</a><span style="color: rgb(153, 102, 51);"> Juego Medieval de Estrategia</span><br>
<br>

all in the same line

Discussion

  • Graham

    Graham - 2009-10-22

    Agreed. Is it possible to show source as raw source and not as reformatted source, please? This option is not available and would be good to implement when using embedded templating characters. At the moment I cannot use KompoZer, or the old Nvu, because it reformats 'standard embedded template escape characters' in certain parts of the page by replacing them with urlencode'd characters. Publishing these changes in the document would break the website template engine. To be precise I want to change scripts according to user language (sic - not programming language), and module. Therefore I want to tell the browser where to find the javascript source:
    <script type="javascript/text" src="scripts/{LANG}/{MODULE}/help"></script>
    The curly brackets are reformatted to %7B and %7D respectively.

    This is unusable.

    The entry and curly brackets are removed and replaced by a template word before they are sent to the browser, and thus would not be seen by the browser. As you have a parser that detects the presence of "non url encoded" characters, why not just highlight them and provide the source as raw? Please!! :-)

     
  • Frédéric Chateaux

    This bug is marked as duplicated of bug 1607834

     
  • Frédéric Chateaux

    • status: open --> closed-duplicate
     
  • Frédéric Chateaux

    • labels: 870480 --> Source View
     

Log in to post a comment.