are syntax choices stored in the Registry?

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
thorwath
Posts: 6
Joined: Sun Jan 06, 2008 8:13 pm

are syntax choices stored in the Registry?

Post 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?
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post 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.
Hope this was helpful.............good luck,
Bob
thorwath
Posts: 6
Joined: Sun Jan 06, 2008 8:13 pm

Post 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
User avatar
SteveH
Posts: 327
Joined: Thu Apr 03, 2003 11:37 am
Location: Edinburgh, Scotland
Contact:

Post 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.
Running TextPad 5.4 on Windows XP SP3 and on OS X 10.7 under VMWare or Crossover.
thorwath
Posts: 6
Joined: Sun Jan 06, 2008 8:13 pm

Post 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.
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post 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]
Hope this was helpful.............good luck,
Bob
Post Reply