• Login
Community
  • Login

Weird issue with syntax highlighing file export

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
14 Posts 3 Posters 2.0k 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.
  • K
    Karsten75
    last edited by Karsten75 May 6, 2019, 4:25 PM May 6, 2019, 4:23 PM

    I created a custom syntax highlight for a user defined language. Then I noticed something weird in the export part of if. Font names are either replaced with weird gibberish, or in places that I have NOT even specified a fontname, some characters appear in the exported XML.

    Edit: I forgot to say that I’m running on Windows 10, with N++ 7.6.6 (64-bit)

    I see if I want to post code snippets here I"m going to have to learn markdown :(

    Since I can’t figure out any other way, here are links to images of the characters I don’t understand in the XML.

    https://i.imgur.com/cZ83KJd.png
    and
    https://imgur.com/PMjO0k1

    In fact, if I select a specific font (Calibri) I still get weird stuff in places I don’t specify and the font name gets overwritten

    Any explanation for this? Thanks!

    [link text](link url)

    <code xml>

    A 1 Reply Last reply May 6, 2019, 5:15 PM Reply Quote 0
    • A
      Alan Kilborn @Karsten75
      last edited by May 6, 2019, 5:15 PM

      @Karsten75

      If you would have done it this way:

      ![Imgur](https://i.imgur.com/cZ83KJd.png)

      It would have looked so nice, embedded in your posting like this:

      Imgur

      :)

      1 Reply Last reply Reply Quote 0
      • K
        Karsten75
        last edited by Karsten75 May 6, 2019, 6:06 PM May 6, 2019, 6:04 PM

        Well, I looked around and couldn’t find that markup (or is it markdown?) Hopefully I’ll remember it for next time. I’ve also found this, though…

        And I would have added it to my original post, but editing is only allowed for a limited time.

          <Styles>
                    <WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" fontName="&#xCDF0;&#x19F8;&#x01C2;" fontStyle="0" fontSize="11" nesting="0" />
                    <WordsStyle name="COMMENTS" fgColor="0000FF" bgColor="FFFFFF" fontName="&#xD3E0;&#x19F8;&#x01C2;" fontStyle="0" nesting="0" />
                    <WordsStyle name="LINE COMMENTS" fgColor="008000" bgColor="FFFFFF" fontName="&#x4478;B" fontStyle="2" fontSize="11" nesting="8192" />
                    <WordsStyle name="NUMBERS" fgColor="8080C0" bgColor="FFFFFF" fontName="&#x0170;&#x1A03;&#x01C2;" fontStyle="1" nesting="0" />
                    <WordsStyle name="KEYWORDS1" fgColor="804000" bgColor="FFFFFF" fontName="&#x0003;" fontStyle="0" nesting="0" />
                    <WordsStyle name="KEYWORDS2" fgColor="0080FF" bgColor="FFFFFF" fontName="&#x0003;" fontStyle="0" nesting="0" />
                    <WordsStyle name="KEYWORDS3" fgColor="800080" bgColor="FFFFFF" fontName="&#x0001;&#x2000;&#x7FFB;" fontStyle="0" nesting="0" />
                    <WordsStyle name="KEYWORDS4" fgColor="800040" bgColor="FFFFBF" fontName="&#x31B1;&#x71BE;&#x13C2;&#x8800;&#x6F40;&#x19E4;&#x01C2;" fontStyle="0" nesting="0" />
                    <WordsStyle name="KEYWORDS5" fgColor="0080C0" bgColor="FFFFFF" fontName="no" fontStyle="0" nesting="0" />
                    <WordsStyle name="KEYWORDS6" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
                    <WordsStyle name="KEYWORDS7" fgColor="8080C0" bgColor="FFFFFF" fontName="&#xFB30;&#x19FD;&#x01C2;" fontStyle="0" nesting="0" />
                    <WordsStyle name="KEYWORDS8" fgColor="004080" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
                    <WordsStyle name="OPERATORS" fgColor="0080FF" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
                    <WordsStyle name="FOLDER IN CODE1" fgColor="005E00" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
                    <WordsStyle name="FOLDER IN CODE2" fgColor="005E00" bgColor="FFFFFF" fontName="&#x0003;" fontStyle="0" nesting="0" />
        

        I mean, seriously, what is up with all those weird font names?

        And really, now it’s just getting weirder. A second ago this was in black with nice highlighting.

        1 Reply Last reply Reply Quote 0
        • K
          Karsten75
          last edited by May 6, 2019, 8:58 PM

          So folks, thanks for all the kindness here. I’d really like to get to the bottom of this.

          Is there a meaningful reason (meaningful may include “it’s a bug”) for the weird characters/names in the fontname field? Is it harmful?

          1 Reply Last reply Reply Quote 0
          • P
            PeterJones
            last edited by May 6, 2019, 9:49 PM

            @Karsten75 said:

            I’d really like to get to the bottom of this.

            It’s been about 5 hours since your initial post. This is just a community help forum, where fellow users of Notepad++ come by, as they have time, to answer the questions where they have the expertise or experience necessary to help. Until someone comes along who has a good idea what’s going on, or has time to experiment with your problem, you may have to be patient.

            Personally, I’ve never seen the fontName attribute go all encoded like that in my UDL settings.

            &#xCDF0;&#x19F8;&#x01C2;
            

            I am checking a unicode table. U+CDF0 is … hmm, one resource says it’s not valid, but the windows charmap says it’s a Hangul Syllable 췰. U+19F8 is a Khmer symbol ᧸. U+01C2 appears to be a symbol for an ALVEOLAR CLICK ǂ.

            yeah, looks like something got corrupted for you.

            No, I don’t know how it happened, as I’ve never seen junk show up in the fontName. The random guess that comes to mind would be that you used to have a font in those slots, but that font was deleted from your system. Other than that, sorry.

            It should be safe to delete all those entries in your UDL file(s). Once you do that (remove clear those elements, save, exit notepad++ altogether, reload notepad++), do they stay clean, or do they get corrupted again? If you make a backup of your userDefineLang.xml and any .xml in userDefineLangs\ folder, and delete them, and create a brand-new, simple UDL, does it behave reasonably, or does it get corrupted. Do you have an exact sequence of events that you can describe (“create new UDL, set X, set Y, save, open the UDL file”) to see if we can re-create your issue?

            Also, when answering those questsions, please also paste what you grab from the ? menu, Debug Info > Copy debug info into clipboard.

            K 1 Reply Last reply May 6, 2019, 9:59 PM Reply Quote 1
            • K
              Karsten75 @PeterJones
              last edited by May 6, 2019, 9:59 PM

              @PeterJones

              I’m sorry, you’re right. I was probably excessively impatient.

              It’s just that I’ve been battling this since last week already. I’ve clean-uninstalled N++ a few times, and those characters seem persistent and consistent, without apparent effects, except that I have to explicitly specify an override font in several locations.

              I’ll go back and do a bit better Problems Source Identification and see if, at least on my system, I can create a consistent scenario.

              1 Reply Last reply Reply Quote 1
              • K
                Karsten75
                last edited by May 6, 2019, 11:00 PM

                So, a new start, and hopefully a fully/better documented post on the “corrupted” syntax highlighting file.

                1. I uninstalled N++ and chose the option to remove user data.
                Execute: regsvr32 /u /s "C:\Program Files\Notepad++\NppShell_01.dll"
                Execute: regsvr32 /u /s "C:\Program Files\Notepad++\NppShell_02.dll"
                Execute: regsvr32 /u /s "C:\Program Files\Notepad++\NppShell_03.dll"
                Execute: regsvr32 /u /s "C:\Program Files\Notepad++\NppShell_04.dll"
                Execute: regsvr32 /u /s "C:\Program Files\Notepad++\NppShell_05.dll"
                Execute: regsvr32 /u /s "C:\Program Files\Notepad++\NppShell_06.dll"
                Delete file: C:\Program Files\Notepad++\uninstall.exe
                Delete file: C:\Users\Public\Desktop\Notepad++.lnk
                Delete file: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Notepad++.lnk
                Delete file: C:\Program Files\Notepad++\SciLexer.dll
                Delete file: C:\Program Files\Notepad++\change.log
                Delete file: C:\Program Files\Notepad++\LICENSE
                Delete file: C:\Program Files\Notepad++\notepad++.exe
                Delete file: C:\Program Files\Notepad++\readme.txt
                Delete file: C:\Program Files\Notepad++\contextMenu.xml
                Delete file: C:\Program Files\Notepad++\shortcuts.xml
                Delete file: C:\Program Files\Notepad++\functionList.xml
                Delete file: C:\Program Files\Notepad++\langs.model.xml
                Delete file: C:\Program Files\Notepad++\stylers.model.xml
                Delete file: C:\Program Files\Notepad++\localization\english.xml
                Remove folder: C:\Program Files\Notepad++\localization\
                Delete file: C:\Program Files\Notepad++\autoCompletion\php.xml
                Delete file: C:\Program Files\Notepad++\autoCompletion\css.xml
                Delete file: C:\Program Files\Notepad++\autoCompletion\html.xml
                Delete file: C:\Program Files\Notepad++\autoCompletion\sql.xml
                Delete file: C:\Program Files\Notepad++\autoCompletion\rc.xml
                Delete file: C:\Program Files\Notepad++\autoCompletion\vb.xml
                Delete file: C:\Program Files\Notepad++\autoCompletion\perl.xml
                Delete file: C:\Program Files\Notepad++\autoCompletion\c.xml
                Delete file: C:\Program Files\Notepad++\autoCompletion\cpp.xml
                Delete file: C:\Program Files\Notepad++\autoCompletion\java.xml
                Delete file: C:\Program Files\Notepad++\autoCompletion\cs.xml
                Delete file: C:\Program Files\Notepad++\autoCompletion\javascript.xml
                Delete file: C:\Program Files\Notepad++\autoCompletion\python.xml
                Delete file: C:\Program Files\Notepad++\autoCompletion\actionscript.xml
                Delete file: C:\Program Files\Notepad++\autoCompletion\lisp.xml
                Delete file: C:\Program Files\Notepad++\autoCompletion\vhdl.xml
                Delete file: C:\Program Files\Notepad++\autoCompletion\tex.xml
                Delete file: C:\Program Files\Notepad++\autoCompletion\xml.xml
                Delete file: C:\Program Files\Notepad++\autoCompletion\nsis.xml
                Delete file: C:\Program Files\Notepad++\autoCompletion\cmake.xml
                Delete file: C:\Program Files\Notepad++\autoCompletion\batch.xml
                Delete file: C:\Program Files\Notepad++\autoCompletion\coffee.xml
                Delete file: C:\Program Files\Notepad++\autoCompletion\BaanC.xml
                Delete file: C:\Program Files\Notepad++\autoCompletion\lua.xml
                Delete file: C:\Program Files\Notepad++\autoCompletion\autoit.xml
                Delete file: C:\Program Files\Notepad++\plugins\NppConverter\NppConverter.dll
                Remove folder: C:\Program Files\Notepad++\plugins\NppConverter\
                Delete file: C:\Program Files\Notepad++\plugins\mimeTools\mimeTools.dll
                Remove folder: C:\Program Files\Notepad++\plugins\mimeTools\
                Delete file: C:\Program Files\Notepad++\plugins\Config\nppPluginList.dll
                Remove folder: C:\Program Files\Notepad++\plugins\Config\
                Delete file: C:\Program Files\Notepad++\updater\GUP.exe
                Delete file: C:\Program Files\Notepad++\updater\libcurl.dll
                Delete file: C:\Program Files\Notepad++\updater\gup.xml
                Delete file: C:\Program Files\Notepad++\updater\LICENSE
                Delete file: C:\Program Files\Notepad++\updater\README.md
                Remove folder: C:\Program Files\Notepad++\updater\
                Completed
                
                1. For completeness’ sake, I downloaded a new installer from here:
                  https://notepad-plus-plus.org/download/v7.6.6.html

                Imgur (took me 5 edits to get this right (no-one can say I don’t mess up)

                1. Chose “English” as my language, and took the default install location in Program Files.

                imgur (only 3 edits this time)

                Default options and shortcut on desktop.
                imgur (got it right with 1 edit - I’m learning fast).

                Couldn’t copy install details, that went by too fast.

                1. I"m in business with a (hopefully clean) N++

                imgur (got it right first time).

                1. Debug info
                Notepad++ v7.6.6   (64-bit)
                Build time : Apr  3 2019 - 23:52:32
                Path : C:\Program Files\Notepad++\notepad++.exe
                Admin mode : OFF
                Local Conf mode : OFF
                OS : Windows 10 (64-bit)
                Plugins : mimeTools.dll NppConverter.dll 
                

                I will continue the rest in a follow-on post, I’m worried about length of posts, etc.

                1 Reply Last reply Reply Quote 2
                • K
                  Karsten75
                  last edited by May 6, 2019, 11:05 PM

                  So much for a clean install, note the xRPL entry under User-Defined Languages.

                  imgur

                  [expletive deleted. This had not happened the previous few times.

                  Guess I’ll re-attempt the steps, maybe throw in a reboot, and a ritual involving a boiling cauldron in a pentagram with black candles…

                  1 Reply Last reply Reply Quote 2
                  • K
                    Karsten75
                    last edited by May 7, 2019, 11:29 AM

                    So, last night, when attempting to post the rest of my exploration, I fell into formatting hell, and eventually just gave up. The long and the short of it was I could create a UDL foth a font name, and export it beautifully. When I tried to import he same UDL XML, and looked at the fonts, there was no entry in the font name, and when I re-exported the UDL, the font name was corrupted.

                    My next step is going to be an attempt to uninstall and install the 32-bit N++ to see if my results are different.

                    As a test, I made up a new UDL, small and clean.

                    UDL “smol” defined, and exported

                    <NotepadPlus>
                        <UserLang name="smol" ext="smol" udlVersion="2.1">
                            <Settings>
                                <Global caseIgnored="yes" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
                                <Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
                            </Settings>
                            <KeywordLists>
                                <Keywords name="Comments">00# 01 02 03 04</Keywords>
                                <Keywords name="Numbers, prefix1"></Keywords>
                                <Keywords name="Numbers, prefix2"></Keywords>
                                <Keywords name="Numbers, extras1"></Keywords>
                                <Keywords name="Numbers, extras2"></Keywords>
                                <Keywords name="Numbers, suffix1"></Keywords>
                                <Keywords name="Numbers, suffix2"></Keywords>
                                <Keywords name="Numbers, range"></Keywords>
                                <Keywords name="Operators1">-&gt; &lt;- [ ] ( ) { } </Keywords>
                                <Keywords name="Operators2">and or xor not</Keywords>
                                <Keywords name="Folders in code1, open">Do While Once</Keywords>
                                <Keywords name="Folders in code1, middle">Else</Keywords>
                                <Keywords name="Folders in code1, close">Loop  endwhile endonce</Keywords>
                                <Keywords name="Folders in code2, open"></Keywords>
                                <Keywords name="Folders in code2, middle"></Keywords>
                                <Keywords name="Folders in code2, close"></Keywords>
                                <Keywords name="Folders in comment, open"></Keywords>
                                <Keywords name="Folders in comment, middle"></Keywords>
                                <Keywords name="Folders in comment, close"></Keywords>
                                <Keywords name="Keywords1">add sub mul div</Keywords>
                                <Keywords name="Keywords2">Pi Tau I J K Distance cos Atan Log10</Keywords>
                                <Keywords name="Keywords3"></Keywords>
                                <Keywords name="Keywords4"></Keywords>
                                <Keywords name="Keywords5"></Keywords>
                                <Keywords name="Keywords6"></Keywords>
                                <Keywords name="Keywords7"></Keywords>
                                <Keywords name="Keywords8"></Keywords>
                                <Keywords name="Delimiters"></Keywords>
                            </KeywordLists>
                            <Styles>
                                <WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" fontName="Calibri" fontStyle="0" nesting="0" />
                                <WordsStyle name="COMMENTS" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="LINE COMMENTS" fgColor="008000" bgColor="FFFFFF" fontStyle="2" nesting="0" />
                                <WordsStyle name="NUMBERS" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="KEYWORDS1" fgColor="FF8080" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="KEYWORDS2" fgColor="FF8080" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="KEYWORDS3" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="KEYWORDS4" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="KEYWORDS5" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="KEYWORDS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="KEYWORDS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="KEYWORDS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="OPERATORS" fgColor="0080C0" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="FOLDER IN CODE1" fgColor="808040" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="FOLDER IN CODE2" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="FOLDER IN COMMENT" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="DELIMITERS1" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="DELIMITERS2" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="DELIMITERS3" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="DELIMITERS4" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="DELIMITERS5" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                            </Styles>
                        </UserLang>
                    </NotepadPlus>
                    
                    

                    UDL "smol’ imported, ,then looked in Default Style to see if font name was preserved, then exported same UDL. Now it’s corrupted.

                    <NotepadPlus>
                        <UserLang name="smol" ext="smol" udlVersion="2.1">
                            <Settings>
                                <Global caseIgnored="yes" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
                                <Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
                            </Settings>
                            <KeywordLists>
                                <Keywords name="Comments">00# 01 02 03 04</Keywords>
                                <Keywords name="Numbers, prefix1"></Keywords>
                                <Keywords name="Numbers, prefix2"></Keywords>
                                <Keywords name="Numbers, extras1"></Keywords>
                                <Keywords name="Numbers, extras2"></Keywords>
                                <Keywords name="Numbers, suffix1"></Keywords>
                                <Keywords name="Numbers, suffix2"></Keywords>
                                <Keywords name="Numbers, range"></Keywords>
                                <Keywords name="Operators1">-&gt; &lt;- [ ] ( ) { }</Keywords>
                                <Keywords name="Operators2">and or xor not</Keywords>
                                <Keywords name="Folders in code1, open">Do While Once</Keywords>
                                <Keywords name="Folders in code1, middle">Else</Keywords>
                                <Keywords name="Folders in code1, close">Loop endwhile endonce</Keywords>
                                <Keywords name="Folders in code2, open"></Keywords>
                                <Keywords name="Folders in code2, middle"></Keywords>
                                <Keywords name="Folders in code2, close"></Keywords>
                                <Keywords name="Folders in comment, open"></Keywords>
                                <Keywords name="Folders in comment, middle"></Keywords>
                                <Keywords name="Folders in comment, close"></Keywords>
                                <Keywords name="Keywords1">add sub mul div</Keywords>
                                <Keywords name="Keywords2">Pi Tau I J K Distance cos Atan Log10</Keywords>
                                <Keywords name="Keywords3"></Keywords>
                                <Keywords name="Keywords4"></Keywords>
                                <Keywords name="Keywords5"></Keywords>
                                <Keywords name="Keywords6"></Keywords>
                                <Keywords name="Keywords7"></Keywords>
                                <Keywords name="Keywords8"></Keywords>
                                <Keywords name="Delimiters"></Keywords>
                            </KeywordLists>
                            <Styles>
                                <WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" fontName=")&#x0101;(" fontStyle="0" nesting="0" />
                                <WordsStyle name="COMMENTS" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="LINE COMMENTS" fgColor="008000" bgColor="FFFFFF" fontStyle="2" nesting="0" />
                                <WordsStyle name="NUMBERS" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="KEYWORDS1" fgColor="FF8080" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="KEYWORDS2" fgColor="FF8080" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="KEYWORDS3" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="KEYWORDS4" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="KEYWORDS5" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="KEYWORDS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="KEYWORDS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="KEYWORDS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="OPERATORS" fgColor="0080C0" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="FOLDER IN CODE1" fgColor="808040" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="FOLDER IN CODE2" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="FOLDER IN COMMENT" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="DELIMITERS1" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="DELIMITERS2" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="DELIMITERS3" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="DELIMITERS4" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="DELIMITERS5" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                                <WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                            </Styles>
                        </UserLang>
                    </NotepadPlus>
                    
                    
                    1 Reply Last reply Reply Quote 1
                    • K
                      Karsten75
                      last edited by May 7, 2019, 11:33 AM

                      I’m sorry for posting a lot, but I find I mess up if I put too many things in the same post.

                      What I’m concerned about is where, in the list of available fonts, the fonts with the @-prefix comes from. I don’t see them in Windows’ Font Preview in System Settings.

                      imgur

                      Also N++ debug info, in case it got lost in the flurry of posts:

                      Notepad++ v7.6.6   (64-bit)
                      Build time : Apr  3 2019 - 23:52:32
                      Path : C:\Program Files\Notepad++\notepad++.exe
                      Admin mode : OFF
                      Local Conf mode : OFF
                      OS : Windows 10 (64-bit)
                      Plugins : mimeTools.dll NppConverter.dll 
                      
                      1 Reply Last reply Reply Quote 0
                      • P
                        PeterJones
                        last edited by May 7, 2019, 1:28 PM

                        @Karsten75,

                        Thanks for all the details, including example UDL. That makes it much easier to check on your bug.

                        As a brief aside, you asked where the

                        fonts with the @-prefix comes from

                        I did a quick online search, and found that per SuperUser#568150 and MS DevBlogs from 2012 , it apparently indicates vertical-oriented varients of existing fonts. I don’t think that’s your problem: it’s quite normal.

                        Back to your issue:

                        UDL "smol’ imported, ,then looked in Default Style to see if font name was preserved, then exported same UDL. Now it’s corrupted.

                        My Experiment #1:

                        • unzip a fresh 7.6.6 64-bit into …\npp.7.6.6.bin.x64\
                        • save your example as …\npp.7.6.6.bin.x64\userDefineLangs\smol.xml
                        • run that edition of Notepad++, and see the ‘smol’ in the list of user defined languages
                        • export the UDL to exportSmol.xml (somewhere)
                        • run a compare on smol.xml and exportSmol.xml: the only difference was that exportSmol.xml had a bunch of fontName="", whereas the source didn’t have those tags at all (except for the one fontName="Calibri")

                        That one worked the way I expected.

                        Experiment #2:

                        • close notepad++

                        • delete …\npp.7.6.6.bin.x64\userDefineLangs\smol.xml

                        • save your original example to importSmol.xml

                        • run that edition of Notepad++, do Language > Define your language: no ‘smol’ yet.

                        • import…, pick importSmol.xml, and now smol shows up in the UDL list.

                        • exit Notepad++l, and re-run that edition of Notepad++. ‘smol’ still in the UDL list

                        • Look at ...\npp.7.6.6.bin.x64\userDefineLang.xml: it has smol, but as @Karsten75 described, the fontName="..." settings are corrupted:

                                <WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" fontName="&#xA1E0;&#xF7FC;&#x020F;" fontStyle="0" nesting="0" />
                                <WordsStyle name="COMMENTS" fgColor="000000" bgColor="FFFFFF" fontName="-1" fontStyle="0" nesting="0" />
                                <WordsStyle name="LINE COMMENTS" fgColor="008000" bgColor="FFFFFF" fontName="Backup" fontStyle="2" nesting="0" />
                                <WordsStyle name="NUMBERS" fgColor="000000" bgColor="FFFFFF" fontName="0" fontStyle="0" nesting="0" />
                                <WordsStyle name="KEYWORDS1" fgColor="FF8080" bgColor="FFFFFF" fontName="no" fontStyle="0" nesting="0" />
                                <WordsStyle name="KEYWORDS2" fgColor="FF8080" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
                                <WordsStyle name="KEYWORDS3" fgColor="000000" bgColor="FFFFFF" fontName="no" fontStyle="0" nesting="0" />
                                <WordsStyle name="KEYWORDS4" fgColor="000000" bgColor="FFFFFF" fontName="MRU" fontStyle="0" nesting="0" />
                          

                        That one seems to confirm your bug with the UDL import procedure. UDL import does have a bug.

                        1 Reply Last reply Reply Quote 2
                        • P
                          PeterJones
                          last edited by PeterJones May 7, 2019, 1:38 PM May 7, 2019, 1:38 PM

                          I just created issue #5630 . Looking through the issues, I indicated it may have been a duplicate of issue #5501 , which @Meta-Chuh had closed as not reproducible – if it is the same, I now have a way of reproducing it.

                          1 Reply Last reply Reply Quote 1
                          • K
                            Karsten75
                            last edited by May 7, 2019, 1:43 PM

                            Hi guys, I can confirm that this issue does not occur with N++ 7.6. Tested with that and all works great. So I’m off to my normal life again. Thanks for everything. :)

                            1 Reply Last reply Reply Quote 0
                            • P
                              PeterJones
                              last edited by May 7, 2019, 1:51 PM

                              @Karsten75 said:

                              this issue does not occur with N++ 7.6

                              Thanks for the extra data point. However, I would recommend against the original 7.6 (no sub-version) for a long-term solution. It had some pretty major bugs in it. v7.6.3 is the first of the 7.6.x series that was reasonably stable; I’d recommend using that one for now (assuming the bug isn’t present there). (I would normally have suggested 7.6.4, but that’s where the multiple UDL files were introduced, and I’m sure it was that feature that accidentally messed up the UDL import.)

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