Automated Code Formatting

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

  • Votes
  • Date
  • Descending date
  1. I just found another solution in Notepad++:
    TextFx>TextFx HTML Tidy>Tidy: Reindent XML

    It reshapes everything and in technicolor!
    1. 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.
    2. It's a plugin: Add-ons -> Plugin Manager -> show Plugin Manage
    3. 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
    4. 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)
  2. 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...