Return to Extensions Gallery |
An extension's code has three parts to it:
- The name of the extension
- Information about who created it
- The list of instructions
Here is an example:
EXTENSION HelloWorld
CREATOR leiger
append Hello World!
The name of the extension
The name of the extension must be defined on the first line. Define it like this:
EXTENSION extension name here
The word "EXTENSION" must be upper-case. Everything else is completely free-form… whatever you write (up until the end of the line) will be shown in STE as the extension name.
Information about who created it
The name(s) of whoever created the extension are also part of the code. This must be defined on the second line, like so:
CREATOR creator name(s) here
The word "CREATOR" must be upper-case. Everything else is completely free-form… whatever you write (up until the end of the line) will be shown in STE as the list of creators.
The list of instructions
The third and subsequent lines are all reserved for your instructions to STE. A few things should be noted:
- Each new line defines a new instruction (or statement)
- Do not leave any line blank
The format is like this:
instruction instruction-details
For more information, please read the list of valid instructions and familiarise yourself with the extension terminology.
The details tells STE what it needs to do with the instruction. For 'append', the details tell STE what text to add to the editor. So this:
append Hello, World!
Will add the text "Hello, World!" (without the quotes) to STE.
Note that the instruction name (e.g. "append") must be in lower-case.
More instruction types will be supported in the near future.
Discussion
leiger |
20 Dec 2010 14:22. Edited 2 times. (Edit, Permalink) Is it easy to understand the first time you tried it? Anything you would suggest changing, etc? Included page "inc:signature" does not exist (create it now) |
(user deleted) |
20 Dec 2010 15:01. Edited 1 times. (Edit, Permalink) Now that I've been through it, I won't need to know that, but it should be documented somewhere for first-timers. For the record, I am very fired up about the direction this is going. Can't wait to see the variables implemented! Included page "inc:signature" does not exist (create it now) |
leiger |
21 Dec 2010 01:35. Edited 1 times. (Edit, Permalink)
Will do that now :) Included page "inc:signature" does not exist (create it now) |
bcammo |
21 Dec 2010 23:25. Edited 1 times. (Edit, Permalink)
Great job with the site, it is simple and easy to understand, and works seamlessly. Included page "inc:signature" does not exist (create it now) |
leiger |
22 Dec 2010 00:07. Edited 1 times. (Edit, Permalink)
This was my original intention before I even built the site, to have the number blown up to a large size and prominently shown. I just haven't gotten around to it yet ;-) I will see about getting that done later today.
Another thing I want to do :) Not sure exactly where to put it though. I'm thinking that somewhere inside the "Description" box would be best simply because when you edit that section, you can also edit the image. Any thoughts on this? Perhaps I should just float it to the right of that box…
Thanks :) Included page "inc:signature" does not exist (create it now) |
leiger |
22 Dec 2010 00:19. Edited 0 times. (Edit, Permalink) Included page "inc:signature" does not exist (create it now) |
(user deleted) |
22 Dec 2010 07:03. Edited 0 times. (Edit, Permalink)
Just saw this addition to the dataform. It's a simple solution and put in the perfect spot. Included page "inc:signature" does not exist (create it now) |