Rollback999

What's the Best Way to Display Code on My Site (In Terms of Making it Standout)?

Asked by Rollback999 2 years ago code display


Neil Monroe
1
 
You will at least want to use the <PRE> tag in your HTML where you demonstrate the code example. This will format your code in a monospace font by default and preserve spaces and line breaks so your code looks as you've formatted it.

Another option is to use a JavaScript solution to help format your code such as SyntaxHighlighter. This useful script can be added easily to a blog site like Blogger or WordPress. Good documentation is available on the site at alexgorbatchev.com

by Neil Monroe 2 years ago

Answer this question

What's the Best Way to Display Code on My Site (In Terms of Making it Standout)?

0 errors found:

 
0