User forums > General (but related to Code::Blocks)

PHP lexer

<< < (2/2)

BrianSidebotham:
Programmers notepad does php lexxing with scintilla under the html lexxer..

adam:
With this HTML lexer it still does the weird underlining issue though. Same thing will happen in Visual Studio when you open a PHP file it thinks it is XML tags and uses an XML lexer.

sethjackson:
Yeah the underlining thing is there, and I couldn't get it to recognize keywords inside <?php ?>. :P

Wahooney:
Hey guys, sorry to be a thread bumper, but has anyone been able to resolve this problem yet?

The lexer file that I've made uses the CPP lexer to do the code highlighting, as you can imagine this is very limiting.

Cheers.

MortenMacFly:

--- Quote from: Wahooney on February 20, 2007, 10:11:54 am ---Hey guys, sorry to be a thread bumper, but has anyone been able to resolve this problem yet?

--- End quote ---
Nope, unfortunately not. I have attached my "alpha" version to this message for others to play with. It actually *should* really work, but it doesn't and I have no clue why that is. I believe because PHP is actually a "sub-lever" of something else (HTML if I recall correctly).
If someone finds a solution please step forward! ;-)
With regards, Morten.

[attachment deleted by admin]

Navigation

[0] Message Index

[*] Previous page

Go to full version