(TEXTPAD) A syntax file for area files

For builders to discuss and ask building questions.
Post Reply
Dalvyn
Sword Grand Master
Sword Grand Master
Posts: 4708
Joined: Tue Jul 15, 2003 9:26 pm
Location: House of Wonder, Waterdeep

(TEXTPAD) A syntax file for area files

Post by Dalvyn » Tue Mar 07, 2006 12:28 am

Textpad is a free text editor for Windows (that can be downloaded from http://users.skynet.be/fa627469/Textpad473.exe) that supports syntax definition files. Syntax definition files are files that describe a programming language (or other structured languages). With such a file, Textpad can automatically recognize and colourise keywords. Not only does it make files more readable, but it also lets you spot typoes more easily (since, if the keyword is not correctly spelled, it won't get colourised).

The current syntax definition file can be downloaded from http://users.skynet.be/fa627469/areas.syn. Make sure that it is correctly named areas.syn (if the extension was replaced with .txt, change it back to .syn).

To install it,
  • Place the area.syn file in the system subfolder of your textpad folder in Program Files (or wherever you have installed Textpad).
  • Launch Textpad, select Configure, New Document Class.
  • Choose a name for the class ("Area files" or something like that), Class members should be *.are, then choose Enable syntax highlighting and select the file areas.syn.
  • Now, to choose the colours for the different classes of keywords, choose Configure, Preferences, Document classes, Area files (or whatever you called them), then the Color section.
The syntactical categories are as follows:
  • BRACKETS = symbols ~ and |
  • STRINGS = section headers and vnums
  • COMMENTS 1 = M and E resets
  • COMMENTS 2 = G resets and trained skills
  • KEYWORDS 1 = flags for rooms/mobs/objects (except those cited below)
  • KEYWORDS 2 = flags for the reset section and main flags for mobs (class), objects (type), and rooms (DDIR_)
  • KEYWORDS 3 = program keywords (mpcommands, if checks, ...)
  • KEYWORDS 4 = socials (can be used in programs)
  • KEYWORDS 5 = program headers (time_prog, buy_prog, ...)
  • KEYWORDS 6 = obsolete flags, flags that should not/rarely be used
Happy building!
Last edited by Dalvyn on Fri Oct 27, 2006 3:37 pm, edited 1 time in total.
Image
Dalvyn
Sword Grand Master
Sword Grand Master
Posts: 4708
Joined: Tue Jul 15, 2003 9:26 pm
Location: House of Wonder, Waterdeep

Post by Dalvyn » Fri Oct 27, 2006 3:28 pm

I have just uploaded a new file. If you find flags that do not get coloured automatically, please let me know, so I can add them to the syn file.
Image
Dalvyn
Sword Grand Master
Sword Grand Master
Posts: 4708
Joined: Tue Jul 15, 2003 9:26 pm
Location: House of Wonder, Waterdeep

Re: (TEXTPAD) A syntax file for area files

Post by Dalvyn » Fri Apr 11, 2008 6:57 pm

New areas.syn updated (it should correctly show up the old APPLY_RESIST_ flags as obsolete).

I also uploaded an old free version of Textpad (it seems that the new version is no longer free) - check the first post.
Image
Dalvyn
Sword Grand Master
Sword Grand Master
Posts: 4708
Joined: Tue Jul 15, 2003 9:26 pm
Location: House of Wonder, Waterdeep

Re: (TEXTPAD) A syntax file for area files

Post by Dalvyn » Sat Oct 18, 2008 3:36 pm

area.syn file updated!
Image
Cret
Sword Grand Master
Sword Grand Master
Posts: 582
Joined: Sat Aug 09, 2003 4:31 am
Location: Waterdeep
Contact:

Re: (TEXTPAD) A syntax file for area files

Post by Cret » Sun Sep 20, 2009 12:07 am

http://www.forgottenkingdoms.org/builders/textpad.php

The link to download the area.syn file cannot be found. Can we update the helpfile to link to one?
Image
User avatar
Lathlain
Sword Grand Master
Sword Grand Master
Posts: 1169
Joined: Sun Aug 10, 2003 4:25 pm
Location: Zhentil Keep

Re: (TEXTPAD) A syntax file for area files

Post by Lathlain » Sun Sep 20, 2009 12:09 am

In the meantime, it can he found here - http://www.forgottenkingdoms.org/builders/areas.syn

Looks like not all the links moved over as they should've!
"This is General Lath'lain Dy'nesir, of the Ebon Spur. Walking Murder surrounded by a thin veneer of civility."
-Miriel
Dalvyn
Sword Grand Master
Sword Grand Master
Posts: 4708
Joined: Tue Jul 15, 2003 9:26 pm
Location: House of Wonder, Waterdeep

Re: (TEXTPAD) A syntax file for area files

Post by Dalvyn » Wed Sep 23, 2009 9:07 pm

The skynet.be link I gave above still works, doesn't it?
Image
Arnof
Sword Journeyman
Sword Journeyman
Posts: 129
Joined: Wed Oct 22, 2008 8:47 pm
Location: Arizona, USA
Contact:

Re: (TEXTPAD) A syntax file for area files

Post by Arnof » Wed Sep 23, 2009 11:25 pm

Totally does.
Post Reply