TWiki Home Tharsis . Website . TextPad (r1.1 vs. r1.5) Tharsis webs:
Design | Guilds | Combat | Website
Website . { Home | Changes | Index | Search | Go }
 <<O>>  Difference Topic TextPad (r1.5 - 18 May 2004 - FantoM)
Changed:
<
<

    • Not sure if PumaN had a particular lpc.syn in mind, but there is one here (the textpad site).
    • Had /open/lpc.syn in mind, which I tried to attach here but failed to, it is generated from the docs in the helpengine and thus includes all efuns and currently about five hundred lfuns from our documented modules. -- PumaN - 18 May 2004
>
>

    • The lpc.syn file for Tharsis is located in /open/lpc.syn and can be downloaded from here. It is generated from the docs in the helpengine and thus includes all efuns and currently about five hundred lfuns from our documented modules.
    • There is another one here (the textpad site) but it is not customised for Tharsis.

 <<O>>  Difference Topic TextPad (r1.4 - 18 May 2004 - PumaN)
Added:
>
>

    • Had /open/lpc.syn in mind, which I tried to attach here but failed to, it is generated from the docs in the helpengine and thus includes all efuns and currently about five hundred lfuns from our documented modules. -- PumaN - 18 May 2004
Deleted:
<
<

Added:
>
>

    • The anger... ;) -- PumaN - 18 May 2004
Added:
>
>

    • I guess we could use a list of global __DEFINES__ too...those have some use nowaday... -- PumaN - 18 May 2004

 <<O>>  Difference Topic TextPad (r1.3 - 12 May 2004 - FantoM)
Added:
>
>

    • Not sure if PumaN had a particular lpc.syn in mind, but there is one here (the textpad site).
Added:
>
>

Added:
>
>

    • Me - I like to kill anyone who uses tabs instead of spaces. This is because it looks shit in the variety of places we view code - IE half the people use 8 space tabs in "ed" and then when they type their own lines they use some tabs and some spaces to line things up and then I open it with my 3 space tabs and their code doesn't line up. Ditto sending code via mail, ditto viewing code in zmud's editor, ditto viewing it in VI on the machine, etc -- FantoM - 12 May 2004
Added:
>
>

    • If you miss this step I kill you, but only after I make you watch me deleting your code :) -- FantoM - 12 May 2004

 <<O>>  Difference Topic TextPad (r1.2 - 12 May 2004 - PumaN)
Added:
>
>

  1. Select File in the list and fill in "c" as Default file extension.
Changed:
<
<

  1. Check "Strip trailing spaces from lines when saving."
>
>

  1. Check "Strip trailing spaces from lines when saving." and "Create new files as: UNIX".

 <<O>>  Difference Topic TextPad (r1.1 - 04 May 2004 - PumaN)
Added:
>
>

%META:TOPICINFO{author="PumaN" date="1083698580" format="1.0" version="1.1"}% %META:TOPICPARENT{name="WizardPages"}%

Textpad

Textpad is a text editor you can download for free from http://www.textpad.com.

Its kind of like notepad except with a lot more functions, but basis is still that you edit basic text files. Which is what we do on the mud whenever we code something.

Setting up textpad

After downloading, installing and starting the program some extra setup is useful. This will make it easier for you to work with LPC documents and code. It will support highlighting of keywords and ensure you adhere to some basic standards.

  1. Download lpc.syn to .../textpad/system
  2. Go to Configure in the menu and choose "New Document Class"
  3. Name the class "LPC".
  4. Fill in "*.c, *.h" as class members.
  5. Check syntax highlighting and select the lpc.syn file.
  6. Press finish and click Ok on the warnings.
  7. Go to Configure in the menu and choose Preferences...
  8. Expand "Document Classes" and select C/C++ in the list.
  9. In the file class list, select *.C and press delete. Do the same to *.H
  10. Select LPC in the document class list.
  11. Check "Strip trailing spaces from lines when saving."
  12. Expand the LPC list and select colors. Set them to colors of your liking. Keywords 6 are not used.
  13. Select Tabulation, set Default tab spacing to 3 or 4.
  14. Check both the convert boxes.
  15. You're done setting Textpad up to work with LPC files.

  • Other things you might want to fix under Preferences...
    • Associated Files: Add .c and .h to make those open in Textpad when doubleclicking.
    • Backup: Dont lose your work again, autosave it every few minutes.
    • Folders: Setup to your liking.

Explanation of lpc.syn:

  • This file will allow syntax highlighting of words/formatting as you write it. It will help you to avoid some spelling mistakes. Setup the colors under Configure->Preferences->Document Classes->LPC >Colors.
  • [Syntax] - some basic formatting rules
  • [Preprocessor keywords] - words used by the preprocessor, they are always prepended by #
  • [Keywords 1] - Flow controllers
  • [Keywords 2] - Variable types and variable/function modifiers
  • [Keywords 3] - All efuns and sefuns
  • [Keywords 4] - A lot of lfuns, as documented by the autodoccer
  • [Keywords 5] - Old functions that should not be used, mark these with some obscure color

-- PumaN - 04 May 2004


Topic TextPad . { View | Diffs | r1.5 | > | r1.4 | > | r1.3 | More }
Revision r1.1 - 04 May 2004 - 19:23 GMT - PumaN
Revision r1.5 - 18 May 2004 - 23:03 GMT - FantoM
Copyright © 2001 by the contributing authors. All material on this collaboration tool is the property of the contributing authors.
Ideas, requests, problems regarding Tharsis? Send feedback.