Page 1 of 1
Static method syntax highlighting
Posted: Fri Oct 19, 2001 8:40 pm
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...
Re: Static method syntax highlighting
Posted: Tue Jan 29, 2002 9:40 am
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
Re: Static method syntax highlighting
Posted: Fri Sep 07, 2007 1:28 pm
by CharlesHarrison
Larry Mottle wrote: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:
... becomes ...
(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.