Recent Changes - Search:

Syntax

<< Search in File | TOC | Syntax Help >>

The Syntax Window lets you select and/or modify syntax highlighting styles.

The buttons at the top (Manager, Style 1, Style 2, etc) select different views.
The JMaker Syntax Window lets you define up to 6 different lists (Style 1, Style 2, ... Style 6) of words and/or symbols. You can save as many of these sets of syntax styles as you want.
Each of these lists (Styles) can have their own distinct:

  • foreground color
  • background color
  • font style combination (plain, bold, italic, bold+italic).
1text color and font choicesDoes not apply to this view
2View selection buttons (Manager, Style 1, Style 2, etc)Select the different views in which you configure the syntax hightlighting style.
3style nameType the name for a new style here and press enter to create a new style. The new style will be created as a copy of the most recent style. In this view "xml" has been typed to begin a syntax style definition for working with xml files. The enter key has not yet been pressed - that is why there is no xml.syn in the list of saved syntax styles.
4current pathShows the current path to the styles. Normally this points to the "jmaker1/syntax" folder. You can edit it and press enter to update the file list.
5filterDoes not apply here.
6list of files and directoriesClick on a file to select the file.
  Double click on ".." to go up a directory level.
7"find"Type in the name of a file to find it in the list. In this example a "p" has been typed in. That is why "php.syn" is highlighted in the file list.
8statusShows how many directories and/or files are in the file list.
9Start StyleSelect(activate) a style by double-clicking on it and the press "Start Style" to make the selected style the default start-up style to use when you run JMaker
10ApplyPress this button to apply the selected style to the Edit Windows.
Pressing the "Style 1" view:

Type the words and/or symbols into the text area.
Modify the foreground and background colors and choice bold, italic or plain.

Pressing the "Style 2" view:

Type the words and/or symbols into the text area.
Modify the foreground and background colors and choice bold, italic or plain.

Pressing the "Style 3" view:

Type the words and/or symbols into the text area.
Modify the foreground and background colors and choice bold, italic or plain.

Pressing the "Style 4" view:

Type the words and/or symbols into the text area.
Modify the foreground and background colors and choice bold, italic or plain.

Pressing the "Style 5" view:

Type the words and/or symbols into the text area.
Modify the foreground and background colors and choice bold, italic or plain.

Pressing the "Style 6" view:

Type the words and/or symbols into the text area.
Modify the foreground and background colors and choice bold, italic or plain.
I put all of the language reserved words here just to make sure I did not miss any.

Pressing the "MLC" view:

This allows you to define what Multi-Line Comments (MLC) will look like.
These are between "/*" and "*/" in Java and C.
Modify the foreground and background colors and choice bold, italic or plain.

Pressing the "SLC" view:

This allows you to define what Single-Line Comments (SLC) will look like.
It is "//" in Java and C.
Modify the foreground and background colors and choice bold, italic or plain.

Pressing the "Quote" view:

This allows you to define what text between quotes will look like.
Modify the foreground and background colors and choice bold, italic or plain.

Pressing the "Other" view:
  • This allows you to define several key syntax parameters:
  • What begins a multi-line comment?
  • What ends a multi-line comment?
  • What begins a single-line comment?
  • What begins a code block (scope)?
  • What ends a code block (scope)?
  • What is the quote symbol?
  • What tokens are used to delimit text (What text characters denote a break in the syntax style)?
Pressing the "Font" view:

This allows you to select the font to apply to this syntax style.
The selected font (and style-bold, italic, plain, etc) is applyed to all the styles (Style 1, Style 2, etc).
It is good to choose the font first.
The default colors (the colors applied to text and symbols that are not defined in Style 1,2,3 etc) are set in the "Font" view.
The default colors are the previewed in the text at the bottom of the "Font" view. In this example it is the text "java.awt.Font[family=Dialog,name= Dial......

It is a good idea to choose the font first.
You must press the "Apply" button in the "Manager" view to apply your styles.
Style modifications will appear in the Edit Window the next time the Edit Window is redrawn.

Edit - History - Print - Recent Changes - Search
Page last modified on July 23, 2007, at 05:02 PM