Page 1 of 1

are syntax choices stored in the Registry?

Posted: Wed Oct 01, 2008 10:50 am
by thorwath
I created a new blah.syn file which I have shared with my team. Is there also a way I can share the default file associated with the syntax file, the keyword colors, etc. as well? Or is this stuff stored in the Registry?

Posted: Wed Oct 01, 2008 8:46 pm
by Bob Hansen
The syntax file is where ever you saved it. Each user needs a copy in their folder, OR, store the syntax file on a Shared Folder, and set the TextPad settings to look in that path.

From TextPad Main Menu: Configure/Preferences/Folders and look at location for syntax to see where your version of TextPad is getting its syntax files from.

Storing the syntax file on the server means you only need to maintain one file for syntax updates to all users. You can do the same with macro and library clip files.

Posted: Thu Oct 02, 2008 9:46 pm
by thorwath
I guess I did not ask the question correctly. I undestand the syntax file and the location stuff.

But once I create a new document class and select a syntax file, I can the go on the customize characteristics for that new class. Lets say colors for that new document class. Where are those color selections stored?

-Thanks, Terry

Posted: Thu Oct 02, 2008 10:59 pm
by SteveH
You are correct. All the details about the syntax colours, file extensions, fonts etc are stored in the registry.

If you are sharing the file with users of the same version of TextPad you should be able to export the registry data for them to re-import. Not an ideal solution I know.

Posted: Thu Oct 02, 2008 11:14 pm
by thorwath
Thanks. I assumed that was the case, but now I have some confirmation. It would be nice enhancement to move this sort of thing into .ini like file.

Posted: Fri Oct 03, 2008 1:49 am
by Bob Hansen
Here is something that I do with syntax files

In sections I have chosen for special colors, I add a comment noting the color that I have selected for that syntax type. Then when the syntax file is used on a system, I can go in and set the colors on that machine to match my desired colors, I have a built in reference list in the syntax file.

Here is an excerpt:
[Syntax]
;* Normal text colors = Black on White
Namespace1 = 6
IgnoreCase = Yes
InitKeyWordChars = A-Za-z_
KeyWordChars = A-Za-z/0-9_
BracketChars =
OperatorChars = >
PreprocStart =
SyntaxStart =
SyntaxEnd = >
;* Comment colors = Navy on White
CommentStart =
CommentEnd =
CommentStartAlt =
CommentEndAlt =
SingleComment = //
SingleCommentCol =
SingleCommentAlt = rem
SingleCommentColAlt =
StringStart = "
StringEnd = "
StringAlt =
StringEsc =
CharStart =
CharEnd =
CharEsc =

[Keywords 1]
;* Color = Green on White
Add
Ask
ChangeDirectory
[/quote]