Syntax+FileType+Indent in regions
- Hi List,
I've been lurking for a while, and I have a question.
Is there any way to apply multiple different syntax highlighting schemes
and indent systems to different parts of a file?
For example, I do a lot of work with PHP, but if I use the PHP syntax
highlighter + indenter, it does a very poor job with HTML and XML. So I
would like it to use PHP syntax highlighting and indenting inside the
PHP tags of '<?php' and '?>' but XML/HTML outside those tags. This needs
to get extended a bit further, in that there are also chunks of
to have formatted with the correct syntax highlighting and indenting.
At best, I can already get the regions that I want to be different
compacted into folds with some complex expressions in fde with fdm=expr,
so if there was then some way to specify syntax highlighting+indenting
per fold, it would be great.
Any suggestions on it ?
Robin Hugh Johnson
E-Mail : robbat2@...
Home Page : http://www.orbis-terrarum.net/?l=people.robbat2
ICQ# : 30269588 or 41961639
GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85