Every time I try to use the For example, if I wanted to illustrate the Edit: And now that I see my question posted, I see that the text is displayed as intended, so apparently it's just the preview that's a mess? I'm going to guess this is just a bug with the preview. Assuming so, maybe there's an OSQA update that fixes this? asked 27 Jul '16, 14:06 cmaynard ♦♦ edited 27 Jul '16, 14:46 JeffMorriss ♦ |
One Answer:
I assume you're referring to the preview display of your question being messed up by the less than symbol? A good way to avoid problems with that is to surround the less-than (and greater than) symbols in back quotes (thus marking it as answered 27 Jul '16, 14:45 JeffMorriss ♦ |
Thanks, that seems to work with the obvious down-side of forcing you to use
code
for those characters, which you may not really want to do just to appease the previewer.But there's another problem - how to get preformatted text (i.e., a text block indented 4 spaces to preview properly? I guess you're forced to use a
<code> </code>
block instead and back-tick the characters?You can always fall back to good-old HTML escapes < and >
<Hello Cris>
@Jaap, thanks. Yes the escape sequences work with inline text or within a
<code> </code>
block, but again fail for preformatted text blocks (those indented by 4 spaces) ... mostly.If, for example, you attempt to insert tshark -R <Read filter> (here I used escape sequences) within the literal
<code> </code>
that I just wrote above, then it fails again. If you add a space following the<
character, then it displays properly in the preview.