Jump to content











Photo

Syntax Highlighter


  • Please log in to reply
No replies to this topic

#1 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 12 March 2009 - 04:26 PM

Usually there are complains that documentation either comes too late or never ...

Here I give you the possibility for a new kind of complain:

With the current version of WinBuilder 076 this Tutorial is not applicable.

It is valid for WB 077 and later :cheers:

Now the item itself:

The Syntax Highlighting in WinBuilder has some colors and font styles, I decided.

As known, many members have different opinions about 'beautyness' than me (Themes, classic style etc.)

To help these members to use their own HighLighter Style, I added the possibility to change this style.

To make changes you have to
  • Create an empty section [HighLighter] in WinBuilder.ini.
  • Start WinBuilder and exit it.
That fills the previously empty section with 'my' values:
[HighLighter]

Comment=Style:[fsItalic]|Foreground:clGray

String=Foreground:clRed

Variable=Foreground:clGreen

Number=ForeGround:clBlue

CommandItems=Style:[fsBold]

IfItems=Foreground:clMaroon|Style:[fsBold]

StrFormatItems=Foreground:clMaroon|Style:[fsBold,fsItalic]

SystemItems=Foreground:clMaroon|Style:[fsBold,fsUnderline]

OtherItems=Foreground:clMaroon

BooleanItems=Foreground:clTeal

If you change anything here, it will be used for you.

Generally, at every 'text-class' you can change 3 different items:
  • Style (font: bold, italic, strikethrough, underline)
  • Foreground (color of the text)
  • Background (color of the background)
If there is more than one item, you must use the vertical bar as delimiter

Style: A set of font options, valid is:
  • fsItalic
  • fsBold
  • fsUnderline
  • fsStrikeOut
As a set, it must be included in brackets, multiple properties are separated by comma.

Allowed colors for Foreground and Background (original names by Billy the Door)
  • clAqua
  • clBlack
  • clBlue
  • clCream
  • clDkGray
  • clFuchsia
  • clGray
  • clGreen
  • clLime
  • clLtGray
  • clMaroon
  • clMedGray
  • clMoneyGreen
  • clNavy
  • clOlive
  • clPurple;
  • clRed
  • clSilver
  • clSkyBlue
  • clTeal
  • clWhite
  • clYellow
Peter

BTW: Inspite this currently seems to be unusable trash, it will become valid soon. :cheers:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users