Automated Code Formatting

Hadra38 Posted messages 109 Status Member -  
 Tomdfrds -
Hello,

I generate an HTML page through a VB program; however, I use an XML API which means the entire page is contained in a single line.

I would like to find a quick way to format the code so that I can debug more easily.

I have looked into Notepad++ plugins but haven't found anything...

Can you help me?

2 answers

  1. thom
     
    I just found another solution in Notepad++:
    TextFx>TextFx HTML Tidy>Tidy: Reindent XML

    It reshapes everything and in technicolor!
    12
    1. vince34000
       
      Hello,

      I have the same problem! I have Notepad++ but I didn't understand your response.
      Can you be more explicit for a novice? :)
      Thank you.
      0
    2. seb
       
      It's a plugin: Add-ons -> Plugin Manager -> show Plugin Manage
      0
    3. Diogyn
       
      Salut,
      c'est un sujet ancien mais voici ma contribution :
      Tidy n'est plus supporté, mais vous pouvez toujours utiliser cette ancienne version :

      Après avoir cherché, j'ai trouvé que vous n'avez pas besoin de télécharger Notepad++ v5.9.

      TextFX avec HTML Tidy peut être téléchargé à cette adresse :
      http://textfx.no-ip.com/textfx/NPPTextFX27-v0.24aRelease-NPP34.zip

      Copiez le dossier NPPTextFX dans le répertoire de plugins\Config de Notepad++ (par exemple C:\Program Files (x86)\Notepad++\plugins\Config), renommez-le en tidy, puis redémarrez Notepad++.

      TextFX n'est plus en développement, voyez cette page :
      http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Plugin_Central#_151

      -> Cette information provient de cette page :
      http://stackoverflow.com/questions/6985637/notepad-htmltidy-unable-to-find-libtidy-dll
      Au revoir
      0
    4. Diogyn
       
      Depuis que j'ai mis à jour vers 6.3.2, j'utilise XML Tools.

      installez XML Tools via le Gestionnaire de Plugins.
      utilisez le raccourci Ctrl+Alt+Maj+B (ou menu -> Plugins -> XML Tools -> Pretty Print)
      0
    5. haj
       

      merci Diogyn

      0
  2. Hadra38 Posted messages 109 Status Member 11
     
    Well, finally by a stroke of luck I found it...! Lol

    I use Cooktop, a software for XML...!

    This post might be useful to someone else...
    3