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