• Login
Community
  • Login

How to HTML beautify ?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
7 Posts 2 Posters 63.1k Views
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.
  • F
    Florent Pagès
    last edited by Dec 21, 2016, 5:59 PM

    Is there a tool to format html code ?

    C 1 Reply Last reply Dec 21, 2016, 6:09 PM Reply Quote 0
    • C
      Claudia Frank @Florent Pagès
      last edited by Dec 21, 2016, 6:09 PM

      @Florent-Pagès

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

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 0
      • F
        Florent Pagès
        last edited by Dec 22, 2016, 3:08 PM

        I have tried xml tool / Pretty print … but…

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

        C 1 Reply Last reply Dec 22, 2016, 4:19 PM Reply Quote 0
        • C
          Claudia Frank @Florent Pagès
          last edited by Dec 22, 2016, 4:19 PM

          @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
          • F
            Florent Pagès
            last edited by Dec 23, 2016, 11:37 AM

            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">
            
            C 2 Replies Last reply Dec 23, 2016, 1:02 PM Reply Quote 0
            • C
              Claudia Frank @Florent Pagès
              last edited by Dec 23, 2016, 1:02 PM

              @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
              • C
                Claudia Frank @Florent Pagès
                last edited by Dec 23, 2016, 2:26 PM

                @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
                6 out of 7
                • First post
                  6/7
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors