How to make a enter symbol in HTML

October 13th, 2011 § 0 comments § permalink

I stumbled across a little problem when use the <pre> tag for showing some code. What do you do if the line is too wide to fit the blog/paper/screen/print/whatever? You can fold it of course, but <pre> doesn’t so I have to hard break the lines. But how does the reader then know it is meant to be on one line?

cat /home/user/documents/public/work/departementXYZ/ | ⏎
sort | tail -n 15 | less

That cool little symbol is written &#x23ce; in hex or &#9166; for decimal. Unfortunately in wordpress you have to switch to the HTML view of your post and manually add them, save the document and publish it. If you switch back to the visual view your symbol will be lost.

Source: http://www.fileformat.info/info/unicode/char/23ce/index.htm

UPDATE!

Don’t do this with shell commands, it’ll break the ability to copy and paste it into your shell. Use \ instead. But anyway, if you’d like to have a nice symbol you know how to do it.