Re: Syntax highlighting for Zope's DTML
- Utz-Uwe Haus wrote:
> > Vim can already do this, by including one syntax file in another. No needOf course, the included syntax file must allow it to be included. There is no
> > to decide between two syntax files, you can have them all at the same
> > time!
> Yes, but that only works if the syntax files behave nicely in the sense
> that their behaviour is not ordering-dependent. I have a few syntax
> files here that make ordering assumptions...
> > I would expect that multiple-major-modes suddenly changes the highlightingI see. Thus the highlighting part of it is effectively the same as what Vim
> > when the cursor moves to another area. Doesn't that look ugly?
> No, syntax highlighting is block-wise: the highlighting rules are
> applied only to the blocks the syntax is responsible for. Menus and
> command mappings change on-the-fly though.
> > What we need is a wholistic HTML syntax file, that includes the otherI don't see much to generalize. You need one syntax file to define how other
> > syntaxes. Perhaps with a few tricks to avoid the need to include them all.
> Yes, but a generalized solution would be nice too...
languages are included. The start and end of the area where the other
language appears must be found. And the synchronization needs to be taken
care of. Then you must say which syntax appears in that area. That's what
":syn include" is for. I don't see which mechanisms are missing to support
Of course it's work to make it all fit together. That's up to the people who
write the syntax files.
hundred-and-one symptoms of being an internet addict:
25. You believe nothing looks sexier than a man in boxer shorts illuminated
only by a 17" inch svga monitor.
/// Bram Moolenaar Bram@... http://www.moolenaar.net \\\
\\\ Vim: http://www.vim.org ICCF Holland: http://iccf-holland.org ///