How i do proper code formatting in Notepad++ in any programming language -


<html>  <head>   <title>     java script file   </title>   <script>     alert("hacked file!")     document.write("hello world!");   </script>  </head>  <body></body> </html> 

notepad++ not format code how apply source formatting.

select html and...

textfx -> html tidy -> tidy: reindent xml

you may need install textfx plugin if not have already. https://sourceforge.net/projects/npp-plugins/files/textfx/ or more easily:

plugins > plugin manager > textfx > install


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

Command prompt result in label. Python 2.7 -