Community
    • Login

    Syntax XML User Defined Language Problem - Please Help

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    not runningsyntax highlighthelpproblemshelp
    11 Posts 5 Posters 5.3k 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.
    • Richard LaJoieR
      Richard LaJoie
      last edited by

      Hello,
      so I have never came here before but I need really bad help so I am trying to get the Syntax Highlight to work like it imports as seen here Image1 but it doesn’t allow me to click it, I have updated it, reinstalled it done everything even looked up wiki from Notepad++ but it just doesn’t work if someone could help me solve this that will be so amazing!

      1 Reply Last reply Reply Quote 0
      • Jim DaileyJ
        Jim Dailey
        last edited by

        @Richard-LaJoie

        Please reword your question or questions. It is not clear what you have tried or what does or does not work for you.

        Richard LaJoieR 1 Reply Last reply Reply Quote 0
        • Richard LaJoieR
          Richard LaJoie @Jim Dailey
          last edited by

          @Jim-Dailey said:

          @Richard-LaJoie

          Please reword your question or questions. It is not clear what you have tried or what does or does not work for you.

          Ok, so I am trying to work out the Syntax Hightlighting and when I import the User Language it shows up like I said with the image but when I click on it to select the Language it just does not work it doesn’t select it just doesn’t work with any xml file.

          Claudia FrankC 1 Reply Last reply Reply Quote 0
          • Claudia FrankC
            Claudia Frank @Richard LaJoie
            last edited by

            @Richard-LaJoie

            so from the image it looks you’ve defined a user defined language called Minnekraft
            and from your post I get that if you click on that language nothing happens.
            My question - what do you expect? The screenshot shows an empty document,
            what should be highlighted?

            Cheers
            Claudia

            Richard LaJoieR 1 Reply Last reply Reply Quote 0
            • Richard LaJoieR
              Richard LaJoie @Claudia Frank
              last edited by

              @Claudia-Frank said:

              @Richard-LaJoie

              so from the image it looks you’ve defined a user defined language called Minnekraft
              and from your post I get that if you click on that language nothing happens.
              My question - what do you expect? The screenshot shows an empty document,
              what should be highlighted?

              Cheers
              Claudia

              I need to it to produce color as here with more Screen Shots 1 2 3 4

              Claudia FrankC 1 Reply Last reply Reply Quote 0
              • Claudia FrankC
                Claudia Frank @Richard LaJoie
                last edited by

                @Richard-LaJoie

                ok, but as long as you have no minnekraft file open it cannot be colored.
                Maybe I still don’t get your point but for me it looks like the problem might be solved
                if you open such a file.

                Cheers
                Claudia

                Richard LaJoieR 1 Reply Last reply Reply Quote 0
                • Richard LaJoieR
                  Richard LaJoie @Claudia Frank
                  last edited by

                  @Claudia-Frank said:

                  @Richard-LaJoie

                  ok, but as long as you have no minnekraft file open it cannot be colored.
                  Maybe I still don’t get your point but for me it looks like the problem might be solved
                  if you open such a file.

                  Cheers
                  Claudia

                  Well I have tried opening the file and everything I will ask JDragon and other YouTubers to see if they can find out the problem but thanks for trying (Sorry for my Grammar I do not usually type I do Voice because its easier for me to explain)

                  Alan KilbornA Claudia FrankC 2 Replies Last reply Reply Quote 0
                  • Alan KilbornA
                    Alan Kilborn @Richard LaJoie
                    last edited by

                    @Richard-LaJoie

                    If you don’t type (seriously??) then you won’t get very far with Notepad++!

                    1 Reply Last reply Reply Quote 1
                    • Claudia FrankC
                      Claudia Frank @Richard LaJoie
                      last edited by Claudia Frank

                      @Richard-LaJoie

                      I will ask JDragon and other YouTubers

                      Feel free to do what you want but don’t you have to type a comment
                      to get in contact with them??

                      The info which you haven’t provided yet is what happens if you open
                      such a file and then click on your Minnekraft language?
                      A screenshot with this combination might help to find out what your problem is.

                      Cheers
                      Claudia

                      Richard LaJoieR 1 Reply Last reply Reply Quote 0
                      • Richard LaJoieR
                        Richard LaJoie @Claudia Frank
                        last edited by

                        @Claudia-Frank said:

                        @Richard-LaJoie

                        I will ask JDragon and other YouTubers

                        Feel free to do what you want but don’t you have to type a comment
                        to get in contact with them??

                        The info which you haven’t provided yet is what happens if you open
                        such a file and then click on your Minnekraft language?
                        A screenshot with this combination might help to find out what your problem is.

                        Cheers
                        Claudia

                        Mmmm Claudia I have a special Discord Server and these people like JDragon are in it lol but what I mean by my earlier comment is I do not explain well when typing I can use a lot I could Html,Css,JS, So this stuff is new to me :/, and I did send screen shots it just does not load I am getting Assistance with him now btw.

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

                          @Richard LaJoie,

                          Maybe this will help explain what @Claudia-Frank has been trying to say: In order for us to help you figure out what’s wrong with your UDL, you would need to show us an example of a file that you want highlighted, and show us what’s not being highlighted correctly.

                          What we would need would be a screenshot like

                          That one actually shows a C-program, with Language > C > C selected; it shows “C source file” in the lower-left to indicate that’s the language selected. And looking at the screenshot, you can see the #include in different color than the (), and the "Hello, World" in a different color than printf. If this were you screenshot, the lower-left would show “User Define File - Minnekraft”, and the text would be whatever would be expected for “Minnekraft” text (source code or data or whatever you are trying to highlight in the Minnekraft-type file). You would then describe what was wrong with the highlighting shown in the Minnekraft file.

                          Instead, you have shown us something like this:

                          You have an empty text file. There is nothing for the Language Syntax Highlighter to highlight (it’s empty), so we cannot tell you what’s going wrong. In my second example, I have told Notepad++ that my empty document is C. That’s nice and all, but since there is no text (C or otherwise) in the file to highlight, selecting the C language does nothing, because there’s nothing to highlight. The confusion Claudia has expressed is that all you’ve shown us is a blank document, and it seems to her (and to me) that you are expecting a blank document to be highlighted, which makes no sense to us.

                          The extra screenshots you showed of your UDL definition would be somewhat useful, but not without also giving us an example Minnekraft file, showing how it doesn’t get highlighted properly, and explaining how you think it should be highlighted.

                          That is the screenshot Claudia has been asking for. To embed an image so we can see it without clicking, use the Markdown Syntax shown below (Markdown is used by this forum to enter your questions):

                          ![](http://i.imgur.com/Uercm86.png)
                          

                          Note that it’s similar to the normal link syntax, but with an exclamation point ! before the [](http://i.imgur.com/Uercm86.png). This code inline in my post embeds the second image I used above.

                          Also, to help us help you, you might want to give us the raw text of an example Minnekraft document. To do that, use Markdown’s code syntax, which requires teh code to be indented by four spaces. To show us an example of Minnekraft file, such as the following:

                          This is my indented 
                          example of Minnekraft text
                          

                          You woud use

                          Here is your initial question text
                          
                              This is YOUR indented 
                              example of Minnekraft text, 
                              indented 4 spaces compared 
                              to your question text
                              
                          And here is further question text, no longer indented
                          

                          Make sure it’s a short example, because there isn’t a huge amount of space in one post in this forum.

                          And since the screenshots of a UDL aren’t always sufficient (your shots don’t say what formatting you’ve chosen for each item, for example), you could use: Language > Define Your Language, then select Minnekraft from the dropdown of the UDL interface, then click Export and save the file, then paste the text of the file (indented an additional 4 spaces) in your question.

                          With all of that, we could grab your short Minnekraft file, we could import your UDL’s XML definition, and we could experiment to help you figure out what’s going wrong.

                          But for now, all we can say is, “of course nothing’s being highlighted; your document is empty, and there’s nothing to highlight”. But I doubt you’d find that helpful.

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