FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour UEStudio - Syntax Highlighting
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
UEStudio - Syntax Highlighting
Posted: Sun Aug 24, 2008 08: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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
UEStudio - Syntax Highlighting
Posted: Mon Aug 25, 2008 10:47 AM

Otto,

Thanks for the info :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 392
Joined: Tue Mar 10, 2009 11:54 AM
Re: UEStudio - Syntax Highlighting
Posted: Thu Apr 30, 2009 07: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 (fw): Select all Collapse
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 (fw): Select all Collapse
lAnd LbxGetItem lChDir LoadCursor lWRunning

So for the character ‘L’, these two lines are in my wordfile.txt:
Code (fw): Select all Collapse
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

Continue the discussion