fc  

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

Tomas Hajny
Sat, 24 May 2008 05:41:25 -0700

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.

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 : ' : '

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.

Tomas


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