I found the answer to this question accidentially. The highlighting
failure disappears if you write the inner string with single quotes
('mstree').Marc On 14 jun, 23:18, Meteormarc <[email protected]> wrote: > In the controller, when I have a multiline string with a pound (#) > character in it, the syntax highlighting in the web editor gets mixed > up and anything after the string is purple (like being part of the > string). A workaround is using scriptstr=("..." "..." "..."), but that > does not look nice either. > > The code below is not finished, but it shows what I mean, apart from > the highlighting :-). > > def jsstr(self): > scriptstr=""" > $(function () { > $("#mstree").jstree({ > "plugins" : ["themes","html_data"] > }); > });""" > return scriptstr > > Any suggestions? > > Marc

