This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 194228 - Better syntax highlighting
Summary: Better syntax highlighting
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1.2
Hardware: All All
: P3 normal with 2 votes (vote)
Assignee: Ondrej Brejla
Depends on:
Reported: 2011-01-11 19:29 UTC by mataOrak
Modified: 2012-07-07 10:14 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description mataOrak 2011-01-11 19:29:10 UTC
It would be very useful if users could change the options of the syntax highligthing;
For example, I want to see the class keyword with different color than other keywords, show in italic only statics methods and fields. Or a different colour for PHP internal functions.

Some of this examples are from Eclipse and it's one of the things I miss more.

What I suggest is to improve the user options of configuration of this feature, because I think that a lot of programmers like to change their IDE and one useful way it's see or skimm faster their code.

Excuseme for me English
Comment 1 richiem 2012-07-07 10:14:02 UTC
adding my voice to this.

I am currently trying to convert a theme for netbeans, but I am lacking options.

Would be great if we could color the following in such a way that they do not get overriden:

method names eg: myMethod(); $this->method(); someClass::method(); isset(); empty();
method arguments & argument values
keywords 'class', 'extends', 'public', 'static' ect ect
conditional blocks, if, else, foreach, switch
static classes eg: someClass::
inherited class names

currently the colors of these entities are set by 'method' and overridden by 'plain text', so depending on your color scheme you can end up with some rather ugly results

I've had a look at the PHP5ColoringLexer to see if these options were hidden away somewhere (thought perhaps i could manually add things to the xml file) but I don't know anything about Java and i couldn't seem to find anything.

some screens to help:

original theme - 
netbeans equivalent (seems to be the best i can come up with) -