-
Website
http://carlo.zottmann.org/ -
Original page
http://carlo.zottmann.org/2003/02/16/nearing-glue-11/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
Vicki
1 comment · 1 points
-
Hendrik Mans
3 comments · 2 points
-
Daniel Ha
2 comments · 405 points
-
kentbrew
4 comments · 2 points
-
Mark Douglass
3 comments · 2 points
-
-
Popular Threads
master
If nothing else, a simple list of code,tag pairs could be used for most of the simple transformations, like bold, italic, abbreviations, et cetera. Then the oddball ones like img and list could be done in special cases. That would cut down on the redundant code in there.
But if you have a better way to do this, please share :)
I'll post the code to the GLUE development forum. I've actually got something similar, if slightly more complicated, already working in a project that I'm doing. It doesn't generalize to cover all the tags that unbbcode() handles, but it does cover most of the simple cases.
<acronym title="... .Ummm">Another Test</acronym>
This makes sense
Yeh, Get the idea of this tag
Ummmm ? Code...No idea on this tag
[Spoilers] If you want to see the enclosed spoilers, please click here. [/Spoilers]
.... *Cough* ... Testing, Testing... 1 2 3...
I still wish we could do a custom tag in between, and I'm not sure why the citation looks exactly like italics either.
Abbreviations don't seem to work in comments (or at least preview). <abbr title="Abbreviation">Abbrev</abbr>.
Zhanell
Zhaneel
Zhaneel
Aye, I am on IE6, and Abbreviations do nish.
Italic
Underlined
<abbr title="Abbreviation">Abbrv</abbr>
<acronym title="Acronym Full">Acronym</acronym>
Strike Thru
Subscript
Superscript
codeCitation
[Spoilers] If you want to see the enclosed spoilers, please click here. [/Spoilers]
Well they all work for me (except Spoilers)... Mozilla 1.2.1 - WinXP
Edited on Feb 21st 2003, 18:50 by ADoomedMarine
Its just Citation/Italic thing, and Spoilers... That dont work... (Whats Citation mean anyway?)
...
Can we have a colour tag? :D
I have a site I want to build, which is on my cards and my to do list, was going to be for a corse I was doing, but even after dropping it I still want to do it, will post up what I want to do later on my blog., ...G-blog inspired it though.