Community
    • Login

    How to HTML beautify ?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    7 Posts 2 Posters 64.6k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Acdc95731A Offline
      Acdc95731
      last edited by

      Is there a tool to format html code ?

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC Offline
        Claudia Frank @Acdc95731
        last edited by

        @Florent-Pagès

        as structure is like xml, xml tools works just fine I guess.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • Acdc95731A Offline
          Acdc95731
          last edited by

          I have tried xml tool / Pretty print … but…

          often html is far away from xhtml … and the result is poor.

          Claudia FrankC 1 Reply Last reply Reply Quote 0
          • Claudia FrankC Offline
            Claudia Frank @Acdc95731
            last edited by

            @Florent-Pagès

            maybe you wanna give an explanation what you have and what you want to achieve?

            Cheers
            Claudia

            1 Reply Last reply Reply Quote 0
            • Acdc95731A Offline
              Acdc95731
              last edited by

              For example

              <!doctype html>
              <html lang="fr">
              <head>
              <title>Page vide</title>
              <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
              <meta http-equiv="imagetoolbar" content="no">
              <meta http-equiv="X-UA-Compatible" content="IE=edge">
              

              after tool / Pretty print

              <!doctype html>
              <html lang="fr">
              	<head>
              		<title>Page vide</title>
              		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
              			<meta http-equiv="imagetoolbar" content="no">
              				<meta http-equiv="X-UA-Compatible" content="IE=edge">
              
              Claudia FrankC 2 Replies Last reply Reply Quote 0
              • Claudia FrankC Offline
                Claudia Frank @Acdc95731
                last edited by

                @Florent-Pagès

                and you want to have it more like this

                <!doctype html>
                <html lang="fr">
                    <head>
                        <title>Page vide</title>
                        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
                        <meta http-equiv="imagetoolbar" content="no">
                        <meta http-equiv="X-UA-Compatible" content="IE=edge">
                

                or more like that

                <!doctype html>
                <html lang="fr">
                    <head>
                        <title>Page vide</title>
                        <meta http-equiv="Content-Type"     content="text/html; charset=UTF-8">
                        <meta http-equiv="imagetoolbar"     content="no">
                        <meta http-equiv="X-UA-Compatible"  content="IE=edge">
                

                or another format?

                Cheers
                Claudia

                1 Reply Last reply Reply Quote 0
                • Claudia FrankC Offline
                  Claudia Frank @Acdc95731
                  last edited by

                  @Florent-Pagès

                  just by accident I found out that there is a plugin called tidy2.

                  Maybe that’s helpful to you.

                  Cheers
                  Claudia

                  1 Reply Last reply Reply Quote 0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • First post
                    Last post
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors