FrancisKatja wrote:Would anybody be able to help me create a bbcode for the HTML arrows? I want it to work as such:
When somebody types -->
Then I want the html arrow to show up: → is the html code, → is the name. How do I go about this?
As Lumpy said, BBCodes don't dynamically replace things as they're typed. However, you technically don't
have to click a BBCode button; you can type the BBCode in directly.
You can create a BBCode to display an arrow as shown below:
BBCode Usage
HTML Replacement
Using that will require more typing than "-->", though.
However, once you have that, you could conceivably write a JavaScript routine that automatically replaces "-->" with the ARR BBCode (or you could create a MOD to do it or possibly use an SQL update to change all instances of "-->").
I wouldn't recommend it, though, because if somebody was entering HTML or XML code and used a comment (
<!-- Comment -->
), the replacement would break the comment and therefore cause the code be wrong.
Steve