Formating code
-
I am missing something. How do we insert a code block in an article? I understand that we need the pre block but do we need to go through the code and remove all the special characters like the '>'? Thanks for any help.
-
I am missing something. How do we insert a code block in an article? I understand that we need the pre block but do we need to go through the code and remove all the special characters like the '>'? Thanks for any help.
Encode your characters so that they are valid HTML. A decent web editor will help you here.
Forgive your enemies - it messes with their heads
My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility
-
Encode your characters so that they are valid HTML. A decent web editor will help you here.
Forgive your enemies - it messes with their heads
My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility
I have tried entering valid html inside the pre block and nothing shows up.
-
I have tried entering valid html inside the pre block and nothing shows up.
Last time I used it, the on-line article editor had two modes (WYSIWYG and HTML), switchable through a <> widget. I suggest you paste your HTML-encoded code (which means
<
for < and similar for > and &) inside PRE tags while the editor is in HTML mode. What I normally do is edit the article off-line, then paste it all in one go in the empty editor, again in HTML mode. :)Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.