An alternative to [noparse]
Phil Pilgrim (PhiPi)
Posts: 23,514
Without the [noparse] tag (which we've been denied due to a "security issue"), it's hard to explain to people why and how to use things like[code]tags. A solution is to use unicode alternatives to the left and right square brackets: [ (U+FF3B) and ](U+FF3D). They look just like ASCII square brackets, but have extra spaces in their glyphs. And the forum software will not see them as brackets and try to parse what's inside of them.
So you can use them like this, for example:
Yo, noobie! Put your code in code blocks so we can read it:
[code]
Noobie code
[/code]
The simplest way to use them is to grab them here by copying and pasting: [ ]
-Phil
So you can use them like this, for example:
Yo, noobie! Put your code in code blocks so we can read it:
[code]
Noobie code
[/code]
The simplest way to use them is to grab them here by copying and pasting: [ ]
-Phil
Comments
Paul
Or you can enter them as HTML literals:
[ ]
But don't copy and paste these strings, since I used a unicode ampersand to prevent the strings from being interpreted!
-Phil
-Phil
But it seemed to confuse the newbs even more, so now I just do this:
{code}
put your code inside code tags, like I've done here. But use square brackets in place of the curly ones in this example.
{/code}
Semi-relatedly, they should really consider changing the code box to use the PropTool font. Here's a userstyle that does that and also changes the edit box to use it (requires that you have the font installed locally)
Because Vanilla is peak crustware, I'd assume. Then again, there aren't a lot of good free choices.
[​code] and [​/code]
to yield:
[code]
Noobie code
[/code]
I also used it in the first line of this post after the first ampersand, so the zero-width coding could be displayed without being interpreted.
-Phil
-Phil
But then it's not really much better, is it?
Here's another idea I got though:
-Phil
[[b][/b]code] and [[b][/b]/code]
[code]
Noobie code
[/code]
No caveats required!
-Phil
Mike
-Phil
Is there more then one editor in the forum?
Mike
-Phil
This has been a good discussion. Thanks to all who contributed!
-Phil