Is there an easy way to display special characters in Maptools?
Currently, I'm just interested in displaying the 1/2 symbol: ½
I don't see any ASCII or CHR type of function though ? Is there anything in Maptools, given the ascii Code #, it can display the symbol ?
Special characters ?
Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice
Re: Special characters ?
Reference for all (or at least many) characters: http://www.ascii.cl/htmlcodes.htm
Just write:
½
And it will appear.
Also useful to add certain characters that may mess up a macro's syntax, for example when you need a " inside a string that is already defined with opening and closing double quotes. You just use " and save yourself troubles.
Just write:
½
And it will appear.
Also useful to add certain characters that may mess up a macro's syntax, for example when you need a " inside a string that is already defined with opening and closing double quotes. You just use " and save yourself troubles.
"There are many ways my Son, to find where the souls of Demons remain...
But it takes only one second of despair and of doubt until, at last, your Soul they will gain..."
But it takes only one second of despair and of doubt until, at last, your Soul they will gain..."
Re: Special characters ?
I was wondering if it was something like that ..Irrlicht wrote:Reference for all (or at least many) characters: http://www.ascii.cl/htmlcodes.htm
Just write:
½
And it will appear.
Also useful to add certain characters that may mess up a macro's syntax, for example when you need a " inside a string that is already defined with opening and closing double quotes. You just use " and save yourself troubles.
Thanks!
Re: Special characters ?
It will also work by leaving off the ";". There are certain MT functions that use the ; and it could get confused in those cases, but for normal html output, that's not necessary.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: Special characters ?
Interesting ...aliasmask wrote:It will also work by leaving off the ";". There are certain MT functions that use the ; and it could get confused in those cases, but for normal html output, that's not necessary.
½
works just fine from within a basic macro, however, when placed into a function (ala lib:utility), it shows a standard 'block".
I tried:
½
and that worked from within the function ... interesting
Re: Special characters ?
Context may matter as well, ie what comes after it. You should always use the ; unless MT doesn't like it in a certain function or context, then you can try it without.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools