2 Replies Latest reply on Aug 20, 2015 2:42 PM by nodr99

    Multi Line Paragraph Grep HTML Highlighting

    nodr99

      Hello,

       

      I've an problem with grep. I would like to use grep to format my HTML Code in InDesign, but the grep command:  [<][!][-][-].*[>].*(~b|.)*[<][!](.*)[-][-][>] did not work. My problem are the multilines of my sample code:

       

      <!DOCTYPE html>

      <html>

        <head>

        <title>Test</title>

      //The Problem Part:

        <!--[if lt IE 9]>

             <script src=“https://“></script>

             <script src=“https://“></script>

        <![endif]-->

      //End of the problem Part

        </head>

        <body>

        Hello World

        </body>

      </html>


      If I wrap all 4 lines into 1, The code: [<][!][-][-].*[>].*[<][!](.*)[-][-][>] works.


      I hope you can help me.