fc  

Re: [FC] PHP syntax in editor, and UTF-8

Brian Havard
Thu, 05 Jun 2008 16:30:42 -0700

Krzysztof Trybowski wrote:
Hello Rainer,
On Wednesday, May 28, 2008 Rainer Scheppelmann wrote:

[...]

Would it be possible with the current syntax to markup Javascript functions and other tags in the HTML header?

I believe highlighting nested languages is a huge job. To do this
right, you'd need to javascript and css, as well as for example MathML
and SVG (which can be embedded in XHTML). Also PHP documents with HTML
parts often exist...

This would be huge.

What I would be in favour of would be CSS highlighter and a way to
highlight CSS nested in HTML.

I've done some rework of the highlighter code to make it more general so that now all element types support a context state. EG number can now be recognised in the string of an attribute value. It should also make it possible to do embedded languages better though I haven't tried doing so yet. Keywords inside comments are now possible for those languages that like to put non-standard compiler extensions in as comments.

This was a significant code change so it's quite likely I've broken something along the way.

_______________________________________________
Fc mailing list
Fc@silk.apana.org.au
http://silk.apana.org.au/mailman/listinfo/fc
Bug Tracker: http://bugs.silk.apana.org.au/