• UDL languages keep disappearing

    3
    0 Votes
    3 Posts
    287 Views
    PeterJonesP

    @Nils-Petter-Olsen said in UDL languages keep disappearing:

    I had clicked “save as” in the define udl window, and saved it in my own folder

    You need to be more precise in your description, because that’s not what happens (under normal circumstances).

    You open Language > User Defined Language > Define Your Language You create your new definition (though it’s currently under the “User Defined Language” name at this point, if you were to exit Notepad++, it would be lost; Notepad++ never stores the UDL named “User Defined Language” – it’s only there as a test bed Hit Save As. You give it a name. There is still no file defined. It’s just got an internal name. An alternate for Steps 2 and 3 would be to start by hitting Create New, which will immediately request a name; you can then define the language after that. Either way, it’s named, but no config file is written yet. Exit Notepad++: with a normal installation, it will write a file called userDefineLang.xml in your %AppData%\Notepad++ directory, assuming it has permission, with the new language(s) that you’ve defined. You should not have to move the file anywhere; it’s in the right spot to begin with.

    If this isn’t the behavior you experienced, then either those weren’t the steps you followed, or you didn’t have write permission to your %AppData%\Notepad++ directory, or your Notepad++ wasn’t set up to use %AppData% – sharing your ?-menu’s Debug Info could give us insight into any non-standard config you have in that regard. If it wasn’t in the right spot in step 4 for you, you should have told us where it was, so that we could help you debug why it was in the wrong spot (but I personally doubt it was in the wrong spot, unless you have a weird configuration… or maybe if you were in Admin mode)

    ((Hmm, maybe if you had multiple instances of Notepad++ open, it wouldn’t save properly, if the one you saved it in wasn’t the instance that had the permissions to save configs; that might be the umpteenth reason to not use multi-instance Notepad++; I haven’t tried, and won’t bother. See the Alternate section below for a procedure that will be immune to this, even if only the primary N++ instance can write to the default UDL file, which I’m not sure if there is such a limitation or not.))

    I learned that this file contained all my UDLs.

    When created that way, yes.

    A few years back, Notepad++ added a new %AppData%\Notepad++\userDefineLangs\ folder to hold individual UDL per file, to make it easier to make use of someone else’s UDL definition (like from the UDL Collection). But when you create a new UDL using the sequence above, it makes use of the old, combined file, rather than standalone files in the subdirectory.

    So if, in your original report, by “disappear”, you meant "no file shows up in %AppData%\Notepad++\userDefineLangs\, then that’s expected behavior. But when you restart Notepad++, they should have still shown up in the Language menu, whether you created it with Save As or Create New from the UDL dialog.

    Alternate

    That said, I dislike Notepad++'s default behavior of keeping them all in the single userDefineLang.xml file, and much prefer using the userDefineLangs\ folder. So I use a slightly modified sequence:

    Open Language > User Defined Language > Define Your Language Immediately hit Save As (or Create New) and give it a name (in this example, I will use MyName) Before inputting any keywords or stylers, I hit Export, and save to %AppData%\Notepad++\userDefineLangs\MyName.xml Confusingly, I now hit Remove to delete the current copy of MyName from the UDL dialog (if you skip this step, you will soon have two copies of the same UDL name) Exit Notepad++ and restart Language > MyName will exist (though it won’t do any highlighting yet) Go to Language > User Defined Language > Define Your Language and pick MyName from the dropdown. Edit the Stylers and Keywords, etc, to make the UDL do what I want. Notepad++ automatically saves any changes made to the UDL to the right config file when you exit Notepad++ (assuming not in multi-instance mode; I make no guarantees or warranties about behavior in that confusing mode)

    … Hmm, the User Manual isn’t clear enough on that in the UDL File Locations section. I should fix that.

    Update: new section “Keeping UDL Files Separate” using a variant of that sequence of steps.

  • Last update issues

    10
    0 Votes
    10 Posts
    427 Views
    Benjamin KirscherB

    @PeterJones @Coises

    Okay… Settings > Preferences > General > Tab Bar > Reduce did have an unexpected impact.
    The tab labels actually use a smaller font with the “Reduce” option unchecked !

    Tabs 02.jpg

    But it’s still composed using a Bold style. I really don’t understand why, but I’ll tell you what : I could live with that ^^.

    I also experimented with %AppData%\Notepad++ and Administrator mode - which was checked, indeed, because of protected files : I use that a lot. But no dice… Recreating a new folder didn’t change anything.

    Thanks a lot for trying to help ! As said above, I could honestly live with tabs in Bold, now that I can at least read longer labels ^^… It’s just a weird issue.

  • 0 Votes
    2 Posts
    177 Views
    CoisesC

    @notepadplupluuser said in Tabs/Spaces: Disable conversation in both directions, just keep as entered:

    I need to edit a file with a crude syntax. I need to enter in some regions tabs, in others spaces.
    Unfortunately I can’t edit this file, and i break it, when i do some additions in single lines.
    np++ either replaces spaces by tabs (if I wish those, i would enter the tab-key), or it replaces tabs with spaces, when i enter them.

    Is there somewhere a hidden configuration, where I can just say: Do what I mean. Don’t touch any of those two characters. Accept them, as I enter them?

    Method 1 (no auto-indent):

    At Settings | Preferences… | Language:

    (Notepad++ 8.6.8): select Indent settings: Indent using: Tab character
    (pre-8.6.8) uncheck Tab settings: Replace by space

    At Settings | Preferences… | Auto-completion:
    uncheck Auto-indent.

    Method 2 (auto-indent will always use spaces):

    At Settings | Preferences… | Language:

    (Notepad++ 8.6.8): select Indent settings: Indent using: Space character(s)
    (pre-8.6.8) check Tab settings: Replace by space

    At Settings | Shortcut Mapper… | Scintilla commands:

    Double-click the line for SCI_TAB. In the dropdown at the middle right (where it shows Tab), select None. Click Apply. Click OK.
  • Spell check misinterprets words

    2
    0 Votes
    2 Posts
    177 Views
    PeterJonesP

    @L-J ,

    Sounds like your chosen spellcheck dictionary doesn’t have the vocabulary you need – that’s not surprising if your “large words” are in a specialty jargon (medical, engineering, etc). You may need to add words to the custom dictionary.

    Assuming you’ve chosen the Hunspell dictionary option in DSpellCheck, and assuming you’ve added at least one word to your custom dictionary: you can go to the DSpellCheck settings, grab the directory name from the Hunspell Dictionaries Path field, and then in that directory, open en_US.usr (or en_GB.usr, or en_AU.usr, or whichever flavor of English you’ve chosen for DSpellCheck). Then you can add all the technical/jargon/“large words” that are missing in that location. After you’ve saved the .usr file, restart Notepad++, and DSpellCheck will recognize all those words.

  • Saving document scrolls XML file to top of the document

    5
    0 Votes
    5 Posts
    506 Views
    Gerrit BarrereG

    @Ashish-D
    Same problem here, but it disappeared when I went to Plugins / XML Tools and turned off “Enable XML syntax auto-check”.

  • Find and Replace multiple lines of XML

    3
    1 Votes
    3 Posts
    425 Views
    Andreas KrausA

    @Alan-Kilborn Thank you so much, that worked beatifully

  • ComparePlus perfect match goes black

    8
    0 Votes
    8 Posts
    423 Views
    D

    Update: I uninstalled (including settings) and reinstalled Notepad++, and it fixed the issue—at least for now. Thank you everyone for your help!

  • Search for 6 figure string but exclude certain strings

    6
    0 Votes
    6 Posts
    294 Views
    andy souterA

    @andy-souter Yes, found out how to make it work. Excludes the strings i want excluded, but getting new ones not excluded that I did not expect. But I now have a way forward. Thanks for your help.

  • Is it possible to merge two lines in a KML file ?

    6
    0 Votes
    6 Posts
    515 Views
    Josef MoertlJ

    @guy038
    … you guys are really incredible … for me this is another dimension !!! … wow … it worked great !!! … and I hope that your solutions will help many many others … I’m pretty sure about that, as I spent hours !!! trying to find a solution before, as this is not possible with Google Earth and there is no third party software solution yet …
    Thank you so much … ;-)

  • expression for specific words

    8
    0 Votes
    8 Posts
    304 Views
    Mark OlsonM

    @kracovwolf
    \s+ matches any number of whitespace characters.

    I’m not going to give you any more hints on basic regex usage - I will once again recommend that you read the user manual’s topic on regular expressions.

    While learning regular expressions may be slow going (it took me a long time to get where I am now), believe me when I say that (1) it is worth the effort, and (2) you can’t get there by asking others for the answer.

  • Customization

    2
    0 Votes
    2 Posts
    170 Views
    PeterJonesP

    @pianoprofitonal ,

    Create a User Defined Language (UDL) using Language > User Defined Language > Define Your Language, giving the language a name. On the Operators & Delimiters page, put the special characters (space-separated) into the Operators1 box, and use the Operators Styler button to assign the color for the special characters. On the Comment & Number page, use the Number Style’s Styler button to set the color for numbers. And on the Folder & Default page, Default Style, use the Styler button to set the “default” color, which will be the color of all the alphabetic (and unspecified) characters.

    Selecting that UDL from the Language menu (or defining the extension in the UDL, and opening a file with that special extension) will activate that special colorization.

  • Not using %appdata% when installing via CLI

    2
    0 Votes
    2 Posts
    367 Views
    PeterJonesP

    @ITManders said in Not using %appdata% when installing via CLI:

    Is it possible to silent install while also not using %appdata%?

    Sorry, as far as I’ve ever seen, that is not currently one of the installer options. One would have to request that feature by following the instructions in our feature request FAQ

  • Getting my file to turn into a https on the web browser

    2
    0 Votes
    2 Posts
    318 Views
    PeterJonesP

    @sinD1202 ,

    It sounds like you have some fundamental misunderstandings about what’s the difference between HTML, HTTPS, and a URL. I suggest you make an appointment with your class’s professor and ask some meaningful questions, especially as to how to upload the file to the server and how to figure out the URL.

    As it is, your question has nothing to do with Notepad++ – Notepad++ is the tool you use for typing your code; it has nothing to do with the server, or figuring out the URL needed to access a file on your server.

  • Is it possible to merge all text from 1 file with another file

    5
    0 Votes
    5 Posts
    349 Views
    CheapSweetLifeC

    @Coises
    Thank you for the help with all of this I have saved the link to the page you linked to to my bookmarks.

  • Pasting "Alt drag blocks" doesn't work anymore

    6
    0 Votes
    6 Posts
    464 Views
    mkupperM

    @smnokars While Notepad++'s behavior has changed you can get exactly what you desire with a small change on your part.

    Step one remains the same. Use “Alt + Mouse” and “Ctrl + C” to create the selection and to load it into your copy/paste buffer.

    For step two though use Alt+left or regular mouse click at the spot where you want to paste the selection. This will move the text cursor or caret to the indicated spot. Now you can do Ctrl+V to paste and you will get

    123456789_1 123456789_1 12345678 12345678 123456789_12345 123456789_12345 123456789_123456789 123456789_123456789

    You don’t need to create the skinny multi-row selection that matches the number of lines in the paste buffer that you were doing in step 2 before.

    Older versions of Notepad++ also worked this way with using Alt+left mouse click to position the text cursor or caret.

    The behavior change with multi-row selections has to do with what the developer calls multi-caret mode that was introduced in v8.6.

    If you have been using column selections then may want to go to Settings / Preferences / Editing 2 / and to turn off Enable Column Selection to Multi-Editing. That’s one of the new v8.6 features that v8.6 enabled by default. Turning it off restores some of the older behavior though apparently does not fix the issue you brought up here.

  • I need help with downloads

    4
    0 Votes
    4 Posts
    241 Views
    PeterJonesP

    @awmess34x ,

    Okay, you have the NppFTP plugin. That still doesn’t tell us your actual steps that you are using that are resulting in the message.

    You would have to tell us what steps you are actually taking inside Notepad++ (every action that leads up to this problem); it would be good to have the NppFTP Messages window open, and see if it shows any errors during the process, and then tell us about those.

    Without more from you, it’s impossible for me to help you. But maybe someone else can make a guess based on your description and be able to help you without you supply more information (I doubt it, but I’d love to be proven wrong on this).

    Good luck.

  • Pb with search result window

    2
    0 Votes
    2 Posts
    187 Views
    PeterJonesP

    @Drappier ,

    Yes, the search result window is displayed after a global search. You may have just accidentally shrunk it to the point where you don’t notice it, or if it’s undocked, it may have been moved off-screen.

    See our FAQ: I cannot find my panel!

    (There’s actually a proposed fix, submitted yesterday, that will hopefully prevent it from getting too small in the future. But the FAQ will help you for now.)

  • The text editor "blurs" weirder

    5
    0 Votes
    5 Posts
    700 Views
    CoisesC

    @rdipardo said in The text editor "blurs" weirder:

    @mkupper said in The text editor "blurs" weirder:

    Did you see the OP’s tried algo turning “Misc -> Use DirectWrite” on and off, but none of those worked.?

    DirectWrite uses the GPU. When the GPU cranks up the refresh rate (as at least one Intel device is known to do), the edit buffer gets redrawn over and over, at a speed that’s increasingly out of step with Scintilla. It’s happened at least once, and could reasonably be expected to happen again.

    @ezShokkoh:

    Especially since the original poster implied that English is not their first language, it is possible that the original poster did not notice or understand that Notepad++ must be completely closed and then started again for any change in that setting to take effect.

    It’s not enough to toggle the DirectWrite checkbox. You must close and restart Notepad++.

  • how to make tab bar appear vertically in notepad ++

    2
    0 Votes
    2 Posts
    1k Views
    mkupperM

    @kahalahmawad

    Try View / Document List plus in preferences you remove the tab bar.

    Or, you can go with the sideways named vertical tab bar and hover the mouse on a tab and it will show the name horizontally.