Non-breaking spaces in code snippets?
-
I want to add some (ascii, plain text, single width font) code output to a post, and I want it formatted, which includes some appropriate non-breaking spaces. How can I do this? I’ve tried the “code” and “pre” html tags in my posts, and I’ve also tried embedding such html code in [sourcecode language='html']…[/sourcecode}, but that doesn’t work. Whatever I do seems to eat up whitespace, especially at the beginning of a line.
Thanks for this!
-Alasdair
-
-
- The topic ‘Non-breaking spaces in code snippets?’ is closed to new replies.