How to use Syntax Highlight

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
User avatar
DanielLanz
Posts: 7
Joined: Tue Sep 19, 2006 10:23 am

How to use Syntax Highlight

Post by DanielLanz »

Hi
In V4.x Syntax Hilightning worked fine.
In V5.x I have problems.
In "Configure/Preferences/Document Classes/SQL/Syntax" I've defined a valid SYN-File and the Flag "Enable Syntax highlighting" is active.
After restarting the SQL file is still presented in s/w.
Only using "View/Document Properties/Syntax" an reentering the SYN file helps. But this information is lost when then file is closed.

Is it possible that the problem only exists, because I work with a German Windows? (the Syn file is stored in "C:\Dokumente und Einstellungen\user\Anwendungsdaten\Helios\TextPad\"

Any Ideas
User avatar
helios
Posts: 711
Joined: Sun Mar 02, 2003 5:52 pm
Location: Helios Software Solutions
Contact:

Post by helios »

In order to enable the syntax highlighting, you will need to implement the following procedure. You may have some of this implemented already:

Click on:

1. Configure
2. Preferences
3. Plus sign next to Document Classes
4. Plus sign next to "SQL"
5. Syntax
6. Check the "Enable syntax highlighting" box.
7. Under the heading "Syntax definition file" Select
"sql.syn".
8. Click Apply / OK

Please ensure that *.sql is a member of the Files in class as follows:

1. Configure
2. Preferences
3. Plus sign next to Document Classes
4. Click on SQL
5. Under the heading "Files in class", make sure that *.sql is in the list. If it is not there, then you will need to add it to the list, along with any other file extensions that you are using for SQL files.
6.Click Apply / OK

I hope this helps.
Helios Software Solutions
User avatar
DanielLanz
Posts: 7
Joined: Tue Sep 19, 2006 10:23 am

Post by DanielLanz »

I have done everything as you have recommended. But unfortunately it does not help.

Questions
Do I have this problem because i've installed Win2000-german ?
Where is this information stored (registry or file) ?
User avatar
helios
Posts: 711
Joined: Sun Mar 02, 2003 5:52 pm
Location: Helios Software Solutions
Contact:

Post by helios »

The information is stored in the Registry under:

HKEY_CURRENT_USER\Software\Helios\TextPad 5
Helios Software Solutions
User avatar
DanielLanz
Posts: 7
Joined: Tue Sep 19, 2006 10:23 am

Post by DanielLanz »

I've found the problem !

"*.sql" was defined in more then one "document classes". !!
See partitional registry export here


thank you for your support[/url]
Post Reply