Static method syntax highlighting

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Larry Mottle

Static method syntax highlighting

Post by Larry Mottle »

If I have

Collections.sort()

the word collections is not higlighted. However if I have:

Collections .sort() // note the space before the period

then Collections is highlighted.

Is there any way to get around this in the java.syn file?

Regards...
kris

Re: Static method syntax highlighting

Post by kris »

although this is not strictly a perfect solution it may reduce the pain
i had the same problem and found that if i replaced my enhanced java.syn file (which had extra classes to highlight) with the original java.syn file that came with textpad, i get the highlighting, as soon as you touch the original java.syn file, you lose the highlighting.
if you are still using you original file then sorry i cant help
CharlesHarrison

Re: Static method syntax highlighting

Post by CharlesHarrison »

Larry Mottle wrote:

Code: Select all

Collections.sort()
the word collections is not higlighted. However if I have

Code: Select all

Collections .sort()  // note the space
then Collections is highlighted.
In all the 'Keywords n' sections, split all compound names containing periods/dots/full stops into seperate entries. Eg:

Code: Select all

java.lang
... becomes ...

Code: Select all

java
lang
(Then, of course, you can use TP's Sort tool to remove the resulting duplicates)

If you remove all such compound names, then it should work. Certainly did for me.
Post Reply