fc  

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

Brian Havard
Tue, 27 May 2008 16:10:01 -0700

Tomas Hajny wrote:
On 24 May 08, at 11:32, Brian Havard wrote:

HTML is quite a bit trickier than the programming languages supported so far. I think it will need more flexible configuration states rather than just a few fixed ones.
I've had a go at adding support for HTML in the latest build. The addition of user definable states should make a few other useful things possible too. The colour scheme may not be idea yet....

Very nice, thank you! One question - is there a way for having numbers in text (i.e. outside tags and entities) displayed the same way as letters? Obviously, text is just text, even if containing digits and whatever other characters; at least I personally don't see a reason for having numbers displayed differently in that part. I tried defining class "text" with colour bright cyan (i.e. the same the regular text has) and adding "number : text" after your original "number(tag) : number" line. I hoped that the general directive applies if there's no special state, but that additional line changed the colour for all numbers including those in tags, which is obviously not what I wanted.

The "number" directive doesn't currently support a required state. I can add that, but usually in HTML even numbers are quoted so the string state takes over.



BTW, the following line should be probably added to fcsyntax.ini (probably missing because I missed it in my definitions posted to this list):

string(tag) : string : ' : '

Ok, I've done that now.



When talking about this area, you might want to add support for the '/i' modifier (case insensitive) after linecomment too, it would allow support for "rem xxxxx" lines in CONFIG.SYS, batch files, etc.

Yeah, I can see how that would be useful.

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