Difference between revisions of "TextPad Setup"

From PCGen Wiki
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
[http://pcgen.svn.sourceforge.net/viewvc/pcgen/Trunk/utilities/editor%20syntax/Textpad/?view=tar PCGen TextPad Syntax Highlight File]
 +
 +
 
Once you have TextPad installed, get "PCGen.syn" (link above) to be copied into
 
Once you have TextPad installed, get "PCGen.syn" (link above) to be copied into
 
the "Textpad/system" directory.  After that you need to create a document type for PCGen.
 
the "Textpad/system" directory.  After that you need to create a document type for PCGen.
  
1) Start TextPad
+
'''1)''' Start TextPad
 +
 
 +
'''2)''' Configure -> New Document Class
 +
 
 +
[[File:TP1.jpg]]
 +
 
 +
 
 +
'''3)''' Enter "PCGen" for the name and click the Next button.
 +
 
 +
[[File:TP2.jpg]]
  
2) Configure -> New Document Class
 
  
3) Enter "PCGen" for the name and click the Next button.
+
'''4)''' For the class members prompt, enter "*.lst" and "*.pcc"  and "*.pcg" then click the Next button
  
4) For the class members prompt, enter "*.lst" and "*.pcc" then click the Next button
+
[[File:TP3.jpg]]
  
5) Check the "Enable syntax highlighting box"
 
  
6) Use the dropdown box to select the PCGen.syn file and then click the Next button
+
'''5)''' Check the "Enable syntax highlighting box" and use the dropdown box to select the PCGen.syn file and then click the Next button
 +
 
 +
[[File:TP4.jpg]]
 +
 
 +
 
 +
'''6)''' Click the Finish button
 +
 
 +
[[File:TP5.jpg]]
  
7) Click the Finish button
 
  
 
Now you need to make some further adjustments for your new document type.
 
Now you need to make some further adjustments for your new document type.
  
1) Configure -> Preferences -> Document Classes -> PCGen
+
'''1)''' Configure -> Preferences
2) Font: Set the font to a monospace font so everything will line up nicely (I use Courier)
+
 
3) Tabulation: Set the default tab spacing to 6 spaces and set the Indent size to 6 spaces
+
[[File:TP6.jpg]]
 +
 
 +
 
 +
'''2)''' Document Classes -> PCGen -> Font: Set the font to a monospace font so everything will line up nicely (I use Courier)
 +
 
 +
[[File:TP7.jpg]]
 +
 
 +
 
 +
'''3)''' Tabulation: Set the default tab spacing to 6 spaces and set the Indent size to 6 spaces
 +
 
 +
[[File:TP12.jpg]]
 +
 
  
 
After this you need to make some further adjustments to the general settings of TextPad
 
After this you need to make some further adjustments to the general settings of TextPad
  
1) Configure -> Preferences
+
'''1)''' View - Make sure the following are checked:
 
 
2) View - Make sure the following are checked:
 
 
   A)  Highlight the line containing the cursor (*extremely* helpful)
 
   A)  Highlight the line containing the cursor (*extremely* helpful)
 
   B)  Horizontal scroll bar
 
   B)  Horizontal scroll bar
Line 33: Line 58:
 
   E)  Visible white space:Paragraphs, Spaces, Tabs
 
   E)  Visible white space:Paragraphs, Spaces, Tabs
  
3) Associated Files - add "*.lst" and "*.pcc" so that Explorer will automatically start Textpad when you
+
[[File:TP8.jpg]]
double click those file types.
+
 
 +
 
 +
'''2)''' Associated Files - add "*.lst" and "*.pcc" and "*.pcg" so that Explorer will automatically start Textpad when you double click those file types.
 +
 
 +
[[File:TP9.jpg]]
 +
 
  
4) File Name Filters
+
'''3)''' File Name Filters
 
   A)  Click the New button
 
   A)  Click the New button
 
   B)  Enter a name/description ("PCGen" works well here)
 
   B)  Enter a name/description ("PCGen" works well here)
   C)  Enter our two favorite wildcards "*.lst" and "*.pcc" separated by a comma
+
   C)  Enter our three favorite wildcards "*.lst" and "*.pcc" and "*.pcg" separated by commas
 
   D)  Click Apply
 
   D)  Click Apply
  
Ok, that's pretty much it for getting TextPad set up.  You'll also want to turn off word wrapping (the
+
[[File:TP10.jpg]]
.lst file lines can get really long and trying to read the word-wrapped is a quick route to insanity...)
+
 
 +
 
 +
'''4)''' Set your preferred font colors/backgrounds for each keyword and visible spaces.  I recommend something bright and garish for the Keyword 6 as that is what is being used for deprecated tags.
 +
 
 +
[[File:TP11.jpg]]
 +
 
 +
 
 +
Ok, that's pretty much it for getting TextPad set up.  A final thought... you'll also want to turn *off* word wrapping as the .lst file lines can get really long and trying to determine three line down if you've actually started a new line or not the with word-wrapping turned on is a quick route to insanity...

Latest revision as of 00:52, 20 October 2010

PCGen TextPad Syntax Highlight File


Once you have TextPad installed, get "PCGen.syn" (link above) to be copied into the "Textpad/system" directory. After that you need to create a document type for PCGen.

1) Start TextPad

2) Configure -> New Document Class

TP1.jpg


3) Enter "PCGen" for the name and click the Next button.

TP2.jpg


4) For the class members prompt, enter "*.lst" and "*.pcc" and "*.pcg" then click the Next button

TP3.jpg


5) Check the "Enable syntax highlighting box" and use the dropdown box to select the PCGen.syn file and then click the Next button

TP4.jpg


6) Click the Finish button

TP5.jpg


Now you need to make some further adjustments for your new document type.

1) Configure -> Preferences

TP6.jpg


2) Document Classes -> PCGen -> Font: Set the font to a monospace font so everything will line up nicely (I use Courier)

TP7.jpg


3) Tabulation: Set the default tab spacing to 6 spaces and set the Indent size to 6 spaces

TP12.jpg


After this you need to make some further adjustments to the general settings of TextPad

1) View - Make sure the following are checked:

  A)  Highlight the line containing the cursor (*extremely* helpful)
  B)  Horizontal scroll bar
  C)  Line numbers (makes talking to each other about where to find stuff easier)
  D)  Vertical scroll bar
  E)  Visible white space:Paragraphs, Spaces, Tabs

TP8.jpg


2) Associated Files - add "*.lst" and "*.pcc" and "*.pcg" so that Explorer will automatically start Textpad when you double click those file types.

TP9.jpg


3) File Name Filters

  A)  Click the New button
  B)  Enter a name/description ("PCGen" works well here)
  C)  Enter our three favorite wildcards "*.lst" and "*.pcc" and "*.pcg" separated by commas
  D)  Click Apply

TP10.jpg


4) Set your preferred font colors/backgrounds for each keyword and visible spaces. I recommend something bright and garish for the Keyword 6 as that is what is being used for deprecated tags.

TP11.jpg


Ok, that's pretty much it for getting TextPad set up. A final thought... you'll also want to turn *off* word wrapping as the .lst file lines can get really long and trying to determine three line down if you've actually started a new line or not the with word-wrapping turned on is a quick route to insanity...