User forums > General (but related to Code::Blocks)
Current status of PHP files support in Code::Blocks?
dmoore:
based on the screenshot seems to be working fine.
from my testing: control->SetStyleBits(control->GetStyleBitsNeeded()); appears to work as described
I've attached updated lexer_html.xml and lexer_php.xml files (plus the sample code files - maybe someone could update the html one to show an example of embedded script code).
*In the html lexer file I've added all the styles and keywords supported in SciTE including embedded html (keywords set 1 in C::B, 0 in the xml), jscript (2, 1), vbscript (3, 2), python (4, 3), and php(5, 4) )
*In the php lexer file I added the php tag style to color the "<?php" and "?>". I also made the php keywords index 4 in the xml entry (since that's what it is in the html lexer code, which I think php shares)
morten: do you want to do the patch/commit after some more testing?
thanks.
[attachment deleted by admin]
dmoore:
--- Quote from: MortenMacFly on May 31, 2007, 01:49:35 pm --- (I can't remember how it was before, unfortunately...).
--- End quote ---
previously all of the script code was shown with a blue squiggly underline and no coloring
rickg22:
--- Quote from: raph on May 30, 2007, 08:11:16 pm ---But why not use an existing exactly-for-php-made editor?
There are lots of out there (e.g. see here).
Regards
raph
--- End quote ---
EEW. Sincerely, the good ones are commercial or "free trial" (ugh). And the free ones suck.
Anyway, great job with the bug fixing, I'll try it tonight when I get home.
rickg22:
A few days ago I had somehow managed to use code completion with PHP files, but I forgot how. I think I fooled CB into thinking PHP files were C++, and I was delighted to find my PHP functions and classes in the class pulldown menu.
There must be a way to modify the code completion plugin to accept other filetypes as parseable, what do you think?
rickg22:
I closed CodeBlocks. I opened it again, and there it was! The function list! I wonder why in the previous run that function list didn't show up. It's a mystery...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version