This is my first post here. Hopefully I'm posting where I should and
that this hasn't been covered already. I am hoping that someone else
has a better solution.

Using eclipse to edit .html files that have embedded python can be a
little frustrating if you (like me) have a habit of pressing ctrl+shift
+f to ask eclipse to format the file for you. Sections of embedded
python code that look like this:
{{...}}
{{...}}
{{...}}
{{...}}

will end up looking like this:
{{...}}{{...}}{{...}}{{...}}

One way to prevent eclipse from playing with the code is by  doing
this:
<pre>
{{=XML("<" "/pre>")}}
{{...}}
{{...}}
{{...}}
{{...}}
{{=XML("<" "pre>")}}
</pre>

Does anyone know of a better way to achieve this result?

Thanks!

-Dave

Reply via email to