UEStudio - Syntax Highlighting

UEStudio - Syntax Highlighting

Postby Otto » Sun Aug 24, 2008 8:58 am

I found out that for proper syntax high lighting it is important that keywords must be alphabetically sorted, lower case (msgInfo!) and that at the end of the line there must be a space character

This line and some other not proper lines are in the provided wordfile.uew:
maximized mdichild method memvar msgInfo msgBeep message menu menuitem msglogo
should be changed to:
maximized mdichild memvar menu menuitem message method msgbeep msginfo msglogo

Regards,
Otto
User avatar
Otto
 
Posts: 6328
Joined: Fri Oct 07, 2005 7:07 pm

Postby Antonio Linares » Mon Aug 25, 2008 10:47 am

Otto,

Thanks for the info :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: UEStudio - Syntax Highlighting

Postby frose » Thu Apr 30, 2009 7:59 am

Hi,

while adding FiveWin functions to my wordfile.txt, I’m wondering why some terms are highlighted others not.

My terms weren’t in alphabetically order, so I tried, what Otto proposed, but it fails.

After some more tests I found these two rules, which are useful for me:

1 - You can have more than one line for one starting character, e. g.:
Code: Select all  Expand view
L2Hex LbxGetItem
LineTo LoadBitmap
LoadIcon LoadString LoadCursor

2 - Don’t mix terms starting with upper and lower case in one line, that’s obviously the reason for the unproper highlighting, e. g.:
Code: Select all  Expand view
lAnd LbxGetItem lChDir LoadCursor lWRunning

So for the character ‘L’, these two lines are in my wordfile.txt:
Code: Select all  Expand view
lAnd lChDir lIsDir lMkDir lWRunning
L2Hex LbxGetItem LineTo LoadBitmap LoadIcon LoadString LoadCursor LPToDP LZCopyFile
 

For me it doesn’t depend of sorted terms, it also works with unsorted terms and also no need of a space character at the EOL.
Windows 11 Pro 22H2 22621.1848
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Harbour 3.2.0dev (r2008190002)
FWH 23.10 x86
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 93 guests