Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ MXP and Pueblo
➜ Elements
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Mon 04 Jun 2001 11:52 AM (UTC) Amended on Mon 04 Jun 2001 12:40 PM (UTC) by Nick Gammon
|
| Message
| Elements are like HTML tags.
eg.
<bold> <color red>
They start with a "<" and end with a ">".
Elements may not contain a "<" or ">" symbol, unless inside quotes.
Quotes
You may use quotes inside an element, in which case you may use "<" or ">" inside the quotes. You should use quotes where an argument (parameter) to a tag contains spaces or other special characters.
eg.
<send "go west">
Single or double quotes are permitted. Whichever quote is used, the other one is permitted inside the quotes.
<send "take 'large sword'">
You can use entities inside elements to represent characters that are otherwise hard to use, in particular:
' - single quote
" - double quote ( or " )
You might do this if you needed to use a single quote within a quoted string, eg.
<send 'take "'Nick's sword"'>
(ie. this would send: take "Nick's sword" )
Defining your own elements
You can extend the language by defining your own elements, eg. if you want to use bold and underline a lot together you could do this:
<!ELEMENT bu '<b><u>' >
This defines "bu" as <b><u>.
So, you could use it like this:
You see a <bu>large</bu> rabbit!
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
6,040 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top