• Login
Community
  • Login

PureBasic missing from style configurator

Scheduled Pinned Locked Moved General Discussion
12 Posts 4 Posters 2.6k 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.
  • G
    Gypsy Prince
    last edited by Apr 22, 2020, 2:16 PM

    Using NP++ v7.8.5 - I see PureBasic listed along with Pascal and Powershell beneath the Language->P menu item. However, I cannot find PureBasic listed in the style configurator where I may customize its syntax colors. Is this a bug? Or, am I just blind and overlooking it somewhere?

    A 1 Reply Last reply Apr 22, 2020, 2:21 PM Reply Quote 0
    • A
      Alan Kilborn @Gypsy Prince
      last edited by Alan Kilborn Apr 22, 2020, 2:22 PM Apr 22, 2020, 2:21 PM

      @Gypsy-Prince said:

      Is this a bug? Or, am I just blind and overlooking it somewhere?

      11a18b08-ee80-499c-85c6-e8c7c49b9b53-image.png

      Conclusion: BLIND !
      :-)

      1 Reply Last reply Reply Quote 0
      • G
        Gypsy Prince
        last edited by Apr 22, 2020, 2:35 PM

        Not there…
        Annotation 2020-04-22 093342.png

        M A 2 Replies Last reply Apr 22, 2020, 2:41 PM Reply Quote 0
        • M
          Michael Vincent @Gypsy Prince
          last edited by Apr 22, 2020, 2:41 PM

          @Gypsy-Prince

          I don’t see it in mine either, but I’m using “Obsidian” as my “Select theme” style and i do see it when I switch to “Default (stylers.xml)” I would take a look at your stylers.xml file and make sure PureBasic is in it.

          PS VinsWorldcom C:\usr\bin\npp64 > grep -i purebasic .\stylers.xml
                  <LexerType name="purebasic" desc="PureBasic" ext="">
          PS VinsWorldcom C:\usr\bin\npp64 > grep -i purebasic .\themes\Obsidian.xml
          PS VinsWorldcom C:\usr\bin\npp64 >
          

          Cheers.

          1 Reply Last reply Reply Quote 2
          • A
            Alan Kilborn @Gypsy Prince
            last edited by Apr 22, 2020, 2:43 PM

            @Gypsy-Prince

            Conceivably your stylers.xml could be from a time before PureBasic was supported by the lexer?
            Upgrading doesn’t touch certain files because it doesn’t want to “blow away” some customizations you may have made.
            Not 100% sure what’s going on…

            1 Reply Last reply Reply Quote 1
            • G
              Gypsy Prince
              last edited by Apr 22, 2020, 2:45 PM

              It’s not listed in there. I’m guessing it is from a previous time. Can someone post the entries for PureBasic so I can add them?

              A 1 Reply Last reply Apr 22, 2020, 2:46 PM Reply Quote 0
              • A
                Alan Kilborn @Gypsy Prince
                last edited by Alan Kilborn Apr 22, 2020, 2:48 PM Apr 22, 2020, 2:46 PM

                @Gypsy-Prince said in PureBasic missing from style configurator:

                Can someone post the entries for PureBasic so I can add them?

                Probably best for you to grab a portable version of 7.8.5 and find them in there?
                See HERE and grab the zip or 7z file.

                1 Reply Last reply Reply Quote 3
                • G
                  Gypsy Prince
                  last edited by Apr 22, 2020, 2:48 PM

                  Ah gotcha!!! That way I can compare for any changes in my other language entries as well.

                  1 Reply Last reply Reply Quote 3
                  • G
                    Gypsy Prince
                    last edited by Apr 22, 2020, 3:06 PM

                    Didn’t work. Just gonna have to re-install new and completely redo my configurations.

                    1 Reply Last reply Reply Quote 0
                    • G
                      Gypsy Prince
                      last edited by Apr 22, 2020, 3:26 PM

                      Okay… I found that not only did I have to add the entries for each new language to the stylers.xml file, but I also had to add them to each desired style using its corresponding file (*.xml) in the ‘themes’ subfolder.

                      Works great now!

                      M 1 Reply Last reply Apr 22, 2020, 3:40 PM Reply Quote 3
                      • M
                        Michael Vincent @Gypsy Prince
                        last edited by Apr 22, 2020, 3:40 PM

                        @Gypsy-Prince said in PureBasic missing from style configurator:

                        but I also had to add them to each desired style using its corresponding file (*.xml) in the ‘themes’ subfolder

                        Yes. The themes are woefully out of date both in terms of full language support and the tags used within each language. I went through and made lots of updated (not complete for all languages) to the Obsidian.xml theme since I use that one, but haven’t bothered updating the others.

                        Cheers.

                        E 1 Reply Last reply Apr 22, 2020, 6:19 PM Reply Quote 1
                        • E
                          Ekopalypse @Michael Vincent
                          last edited by Apr 22, 2020, 6:19 PM

                          @Michael-Vincent

                          I’m working on synchronizing the themes and I have opened a thread of my own here.

                          I got a lot of information and many links to even more information from guy038.
                          Unfortunately the topic is completely new to me,
                          so it will take some time until I can come up with a script here.

                          To give a short visual representation of what needs to be done.
                          The defined foreground colors from the default styler.

                          6d94511d-75da-400a-a8f4-075c81c58ba1-image.png

                          All the colors that are similar should be migrated to one color.
                          Hoping to reduce the amount of different colors from >120 to 20-30
                          There will be only one default background and one default foreground color in the lexers.
                          I.e. on this example image, I would convert FFFFFF and similar to 000000.

                          The colors used internally by Npp would be handled separately,
                          because, for example, the background color of the current line must be different.

                          There is a lot to do but I haven’t given up yet. :-)

                          1 Reply Last reply Reply Quote 2
                          10 out of 12
                          • First post
                            10/12
                            Last post
                          The Community of users of the Notepad++ text editor.
                          Powered by NodeBB | Contributors