<html>
 <head>
  <title>
    Java Script file
  </title>
  <script>
    alert("Hacked file!")
    document.write("Hello world!");
  </script>
 </head>
 <body></body>
</html>
Notepad++ could not format this code how i apply source formatting.
<html>
 <head>
  <title>
    Java Script file
  </title>
  <script>
    alert("Hacked file!")
    document.write("Hello world!");
  </script>
 </head>
 <body></body>
</html>
Notepad++ could not format this code how i apply source formatting.
 
    
    Select all html and...
TextFX -> HTML Tidy -> Tidy: Reindent XML
You may need to install the TextFX plugin if you do not have it already. https://sourceforge.net/projects/npp-plugins/files/TextFX/ or more easily:
Plugins > Plugin manager > TextFX > Install
 
    
    go for visual studio.it will let you format it. in fact it will allow you to write,compile,edit any code of almost any programming language.
