On Thu, 2006-08-03 at 22:15 +0300, Paul Colomiets wrote: > Hi! > > I've made highlighting for my own use for Smarty template language > (smarty.php.net) about two years ago. It works well for me and I wish > fix bugs and contribute this lexer to Scintilla. I need some advices, If > somebody interested in it. > I've wrote just smarty lexer, but this language as PHP is designed to > embed in HTML (and this HTML can also have PHP code in it). I can (try) > to add it to html parser but this may produce a very bloated one, an on > the other hand I think folding can't be provided in this way. But > highlighting HTML is very useful when editing smarty templates. Well, > may be It's good solution to provide it twice: into html highlighter and > as separate lexer with folding?
There are not enough free styles on this lexer for a new language. To add smarty templates to it, we will need to get out one of the supported embedded languages. Long time ago I requested to add CSS support to it, but I failed miserably to get time to accomplish the task. Neil replied me something like "... pick up the python script styles, send me the implementation, and we will see ..." - that's from my quite bad memory so don't trust me too much. I don't know if smarty templates are more used than python script, but I bet not. With this I mean we're low on styles on this lexer, there are other - more used than smarty - web languages as CSS, that will have a need for those styles - if finally implemented - and may be better to look forward and struggle for SinkWorld, helping Neil by writing lexers for it, instead of beating a dead cow trying to fix this lexer to support another-of-the-thousand-to-come embedded web languages. Just my 0.02$ -- Iago Rubio _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
