TextPad - Setting up Syntax Files

Installation Instructions:

After you have downloaded one of these files, extract its contents into the SAMPLES subfolder of your TextPad installation folder. Then there are three basic steps required to set it up:

  • Create the document class.
  • Specify which files are members of that class.
  • Specify which syntax definition file is required.

In TextPad 4.2 and later, this can be done using the "New Document Class" wizard on the "Configure" menu.

In TextPad 4.0 and 4.1 you will need to do this manually (see below).

For example, for Perl files, first create the document class:

  • Close any open documents, even blank ones.
  • From the Configure menu, choose Preferences.
  • Select Document Classes.
  • Click the empty box at the bottom of the list of classes.
  • Type the name "Perl" and press Enter.
  • Click Apply.
  • Click the "+" next to Document Classes.
  • Select the new entry for Perl.
  • Change any properties, such as "Create new files as UNIX", if
the defaults are not appropriate.
  • Click Apply.

Next, specify which files are members of this class:

  • Click the empty box at the end of the list of class members.
  • Type "*.pl" and press Enter.
  • Click Apply.

Finally, specify which syntax definition file is required:

  • Click the "+" next to the Perl document class.
  • Select "Syntax".
  • Check "Enable syntax highlighting".
  • From the list of syntax definition files, choose "Perl.syn".
  • Click OK.

Now, open a file with extension ".pl" and it should be syntax highlighted.

-- JimSkon - 11 Oct 2007

Topic attachments
I Attachment Action Size Date Who Comment
Synsyn css.syn manage 5.4 K 2007-10-11 - 13:46 JimSkon  
Synsyn mysql_5.syn manage 6.6 K 2007-10-11 - 13:46 JimSkon  
Synsyn pdf.syn manage 5.2 K 2007-10-11 - 13:46 JimSkon  
Synsyn php-js-css-html.syn manage 100.6 K 2007-10-11 - 13:47 JimSkon  
Synsyn ruby_on_rails.syn manage 9.5 K 2007-10-11 - 13:47 JimSkon  
Synsyn spss.syn manage 14.2 K 2007-10-11 - 13:47 JimSkon  
Synsyn textPadKeywords.syn manage 1.8 K 2007-10-11 - 13:47 JimSkon  
Topic revision: r3 - 2011-09-20 - JimSkon
 
This site is powered by the TWiki collaboration platformCopyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback