Community
    • Login

    The Nightmare %> Issue

    Scheduled Pinned Locked Moved General Discussion
    18 Posts 7 Posters 288 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.
    • Bjorgen EatingerB
      Bjorgen Eatinger @donho
      last edited by

      @donho Thank you very much for your reply. Please let me know what else you would like me to provide to help out. Thank you very much!

      rdipardoR 1 Reply Last reply Reply Quote 0
      • rdipardoR
        rdipardo @Bjorgen Eatinger
        last edited by

        @Bjorgen-Eatinger

        Already done https://github.com/ScintillaOrg/lexilla/issues/335

        1 Reply Last reply Reply Quote 2
        • Alan KilbornA
          Alan Kilborn @Bjorgen Eatinger
          last edited by Alan Kilborn

          @Bjorgen-Eatinger said:

          I wouldn’t mind paying money for NotePad++, but that’s not possible, is it?

          You can donate if you’d like; see HERE.

          1 Reply Last reply Reply Quote 0
          • Bjorgen EatingerB
            Bjorgen Eatinger @Coises
            last edited by

            @Coises I greatly appreciate your post and kindness. I am not a pro-user by any means. I will take your advice and do my best to report this issue regarding Lexilla on GitHub. I’ll more than likely delete this post here, as the responses were unusual. I’m an older fellow and haven’t been super active other than the work that I do on my own website. I tried to edit the post, but wasn’t allowed to do so. Thank you again!

            Terry RT 1 Reply Last reply Reply Quote 0
            • Terry RT
              Terry R @Bjorgen Eatinger
              last edited by

              @Bjorgen-Eatinger said in The Nightmare %> Issue:

              I’ll more than likely delete this post here, as the responses were unusual.

              We prefer users to NOT delete posts, especially if there have been responses. Imagine some months down the track an initial post is deleted leaving all these responses to some “unknown” question.

              In fact, us moderators will reinstate a deleted message if there are responses so as to keep that “continuity” of information.

              Terry

              Bjorgen EatingerB 1 Reply Last reply Reply Quote 0
              • Bjorgen EatingerB
                Bjorgen Eatinger @Terry R
                last edited by

                @Terry-R Okay, yes you are right. Information is key–the more the better! So I did as @Coises suggested, and download and tested SciTE, and found that it works perfectly. It handles the opening and closing brackets gracefully and correctly when they are a part of a comment. In fact, if I don’t use them correctly (e.g., '<% Hello % >), then it lets me know about it–very nice. Therefore, as @Coises suggests this problem must be in NotePad++ itself. I will update my GitHub post accordingly. Thank you all for all of your posts and guidance. Very much appreciated!

                PeterJonesP rdipardoR 2 Replies Last reply Reply Quote 0
                • PeterJonesP
                  PeterJones @Bjorgen Eatinger
                  last edited by

                  @Bjorgen-Eatinger said in The Nightmare %> Issue:

                  So I did as @Coises suggested, and download and tested SciTE, and found that it works perfectly. It handles the opening and closing brackets gracefully and correctly when they are a part of a comment.

                  Which is odd, because @rdipardo’s experiment, which was included in the Lexilla issue, proves that SciTE does not handle it correctly.

                  Can you use the </> button on a post toolbar, and paste in the exact example text that shows Notepad++ not handling it correctly and SciTE is handling it correctly, with screenshots of both?

                  1 Reply Last reply Reply Quote 0
                  • rdipardoR
                    rdipardo @Bjorgen Eatinger
                    last edited by rdipardo

                    @Bjorgen-Eatinger said in The Nightmare %> Issue:

                    Information is key–the more the better!

                    In that case, please reply to @PeterJones’s most recent post, and also show what options are enabled in the Settings > Preferences > Highlighting submenu.

                    My initial response to N++ issue #17072 was to assume it was a duplicate of another issue caused by the tag highlighting feature, which will naïvely find “tags” in contexts where there is no HTML markup; e.g.,

                    257007691-f758a461-aa90-42ed-8275-7360245a6bfb.png

                    This only occurs when the active language is HTML and the Enable option is checked under Settings > Preferences > Highlighting > Highlight matching tags .

                    1 Reply Last reply Reply Quote 1
                    • PeterJonesP
                      PeterJones
                      last edited by PeterJones

                      For example, I spun up the IIS features on my Win11 machine.

                      If I use:

                      <!DOCTYPE html>
                      <html>
                      <body>
                      <%
                      Response.Write("Hello World!<hr>")
                      %>
                      
                      <%
                      Response.Write("Run me!")
                      ' Response.Write("Commented out!")
                      Response.Write("<p>Run me 2!</p>")
                      %>
                      
                      <%
                      LocationPhraseServiceArea = "{This is the value}"
                      %>
                      <%
                      ' <p>
                      ' We provide professional event production and rental services <%= LocationPhraseServiceArea %>.
                      ' what goeth here</p>
                      %>
                      
                      <p>
                      We provide professional event production and rental services <%= LocationPhraseServiceArea %>.
                      what goeth here</p>
                      
                      </body>
                      </html>
                      

                      … which is the best interpretation I can come up with for your “later in the page content:” code snippet, plus some extra to prove that IIS ASP code is working around it, I get:

                      936879a3-6453-4907-af76-ca042474ab0d-image.png

                      The Notepad++ highlighting seems to match what’s displayed when I look at what the server shows – that is, the %> at the end does close the ASP wrapper, and it goes back to being raw HTML, which the browser renders.

                      So you really need to show

                      1. exactly what code you have.
                        If my “use the </> button” explanation doesn’t make sense to you, then use
                        ```
                        paste your ASP code here
                        ```
                        
                        for example,
                        ```
                        <%    
                        Response.Write("Hello World!<hr>")
                        %>
                        ```
                        
                      2. a screenshot of the highlighting in Notepad++ being “wrong”
                      3. a screenshot of the highlighting in SciTE (and which version of SciTE you are using) being “right”

                      It needs to be identical code in both Notepad++ and SciTE, so that we’re comparing apples to apples.

                      Bjorgen EatingerB 1 Reply Last reply Reply Quote 0
                      • Bjorgen EatingerB
                        Bjorgen Eatinger @PeterJones
                        last edited by

                        @PeterJones Sorry for the late reply. This issue only occurs in a case like this:

                        ’ <% Sub ApplyPasswordReset(oConnGlobal, postData, ByRef result). %>

                        There is a comment (apostrophe) in front of that line of code.

                        The editor is not honoring the fact that this line of code is a COMMENT ONLY.

                        Every line of actual code after this line is now treated as text only (not ASP code).

                        Until you put a SPACE between the “%” and the “>”, as in the following:

                        ’ <% Sub ApplyPasswordReset(oConnGlobal, postData, ByRef Result). % >

                        That’s it. Again, sorry for the late reply.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        The Community of users of the Notepad++ text editor.
                        Powered by NodeBB | Contributors