0

I am trying to some simple text files with HTML5 file api like css,js,etc. but I lost indentation when displaying .

how could I get indentation?

user1834809
  • 1,311
  • 4
  • 17
  • 28

1 Answers1

1

Wrap the code in the <pre>...</pre> element

  • thanks that could me great idea but is there any formatting libraries? – user1834809 Jul 15 '13 at 11:29
  • The one that is probably used most is http://alexgorbatchev.com/SyntaxHighlighter/download/ but download the version 2.0.x version. –  Jul 15 '13 at 11:34
  • The link for the syntax highlighter handles most languages HTML, CSS, JavaScript, PHP and more : http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/ –  Jul 15 '13 at 11:44