• Issues with Vertical Edge Setting + User Defined Language

    2
    0 Votes
    2 Posts
    159 Views
    ?

    Edit: I fixed this, in case anyone has any issues with it later. I just had to uncheck global font size.

  • Notepad++, windows 11 and pythonscript

    9
    0 Votes
    9 Posts
    444 Views
    ThosRTannerT

    @Ekopalypse working great now. thank you!

  • Line select problem

    9
    0 Votes
    9 Posts
    1k Views
    PeterJonesP

    @Michael-Lander said in Line select problem:

    @guy038 this is great! I cannot, however, find any shortcuts.xml to drop them into.

    %AppData%\Notepad++\shortcuts.xml

    See FAQ

  • How do I copy my settings to a new computer

    4
    0 Votes
    4 Posts
    690 Views
    Mark OlsonM

    @ThosRTanner
    Should be the contents of the %Program Files%\Notepad++\plugins folder.

    Note that most plugins have a bunch of app data in %Appdata% as well, which will be copied along with everything else if you do as PeterJones directed.

  • append data before and after text

    5
    0 Votes
    5 Posts
    224 Views
    namx3249N

    yes, i know ffmpeg but already tried for strange site and does not work
    because from m3u8 to this site only segments are present but missing the full link (first) and token at the end (see my first post above), so ffmpeg don’t have link for its download

  • Keyboard Shortcut in Windows Context Menu

    3
    0 Votes
    3 Posts
    333 Views
    Max StoneM

    @PeterJones Alright, thank you for the reply; and the FYI, that’s good to know.

  • Is there a good css class parser?

    8
    0 Votes
    8 Posts
    725 Views
    Markus KrauseM

    @Jeffrey-Cobb

    Try this, its better and fast:

    <?xml version="1.0" encoding="UTF-8" ?> <NotepadPlus> <functionList> <parser id="css_comment" displayName="CSS Comment" commentExpr="(?s:/\*.*?\*/)|(?m-s://.*?$)"> <function mainExpr="^([:#\.\w][^\{]+\{[^\}]+\})" displayMode="$functionName"> <functionName> <nameExpr expr="^([:#\.\w][^\{]+)"/> </functionName> </function> </parser> </functionList> </NotepadPlus>
  • regex search replace

    12
    0 Votes
    12 Posts
    638 Views
    Thomas-OlivierT

    I put it in appdata and the one from the main D:\Notepad++\shortcuts.xml I removed.

    A big thank you to @guy038. It works flawlessly.

  • Better CSV columns?

    4
    0 Votes
    4 Posts
    4k Views
    CoisesC

    You might be able to use my plugin Columns++ to help with this. See the help sections on Elastic tabstops and the Convert separated values to tabs… command.

    Elastic tabstops is a conceptually simple algorithm defined by Nick Gravgaard for aligning tab-separated text. It works by treating each tab as a column separator and then making each column just large enough to hold its contents, much like the way a simple HTML table works.

    In most cases, Convert separated values to tabs should be able to transform a csv file into tab-separated values without confusion.

    There are some other handy functions in the plugin for working with data arranged in columns as well.

    I currently consider the plugin to be in an “alpha” state. I use it, and I haven’t been seeing many problems reported, but it could be that hardly anyone is using it. If you use it, please let me know if you encounter any problems.

  • I need to insert a special character at the beginning of a line

    3
    0 Votes
    3 Posts
    590 Views
    JustinJudoJ

    @PeterJones Thank you Peter, I appreciate the solution. Man you’re so good with this stuff… I wish I knew how to do RegEx. I’ve looked it before but it just seem so difficult to learn!

  • Protect Lines Within Tabs

    8
    0 Votes
    8 Posts
    606 Views
    EkopalypseE

    @Alan-Kilborn @Coises

    without having more information about how exactly such a feature is supposed to work, it’s hard to say whether locking part of a text with this style attribute is sufficient. For example, if this “locking” only happens after several edits, I’d be surprised if a few “undos” didn’t reset the text. Never tested it.

    @Douglas-Schneider - there is a possibility that a Python script could be used via the PythonScript plugin, but one would need more information on how it should work.
    Questions I’m thinking of include.
    Are the files only on the hard drive or also on the network, on a USB drive, etc.?
    Is the file only ever edited by one person, or perhaps multiple users?
    Is the area locked when the file is loaded or at any time?
    Does only text need to be locked for files that don’t use another lexer, e.g. text doesn’t have a lexer, but xml or json files do.
    What must be done when ending a npp session or closing the file or starting npp and loading a file?
    Etc …
    If you can specify your requirement and are willing to go the a python script solution way, we might be able to offer you something.

  • Find with regex a particular word between 2 lines

    6
    0 Votes
    6 Posts
    283 Views
    Vasile CarausV

    @wonkawilly I need a regex, because I wanna FIND and REPLACE in several html files…

    I find a solution, super

    FIND: </table>\r\n\K(<.*>)|K\r\n<p class="text_obisnuit">

    interesting is that I used K instead of \K

  • Bana yardım edin lütfen

    11
    0 Votes
    11 Posts
    357 Views
    PeterJonesP

    @İhsan-Akdaş said in Bana yardım edin lütfen:

    but everyone I watch videos can edit it,

    I just noticed this statement: you should re-watch the video, because a rewatch will probably show you that you picked the wrong file to edit, or it will show you how the video said to make the changes.

  • Shell extension multiple files behavior change

    2
    0 Votes
    2 Posts
    160 Views
    PeterJonesP

    @fixmypcmike ,

    Starting in v8.5.1, the way the context menu was done was changed to work with win11, but has been having trouble with older versions of Windows. Subsequent releases have been trying to fix it for “everyone” with varying levels of success.

    Unfortunately for you, Win7 is not supported by Notepad++, so while it will hopefully soon work for win8.1 and newer, it may be that it won’t ever be in your default context menu on your decade-out-of-date OS. Of course, it’s really easy to manually add it to your registry yourself on Win7… ( use the forum search for registry and put my username as the author in the search advanced options, and you should find an example from me some years back.)

  • Screen location when Notepad++ restarts

    8
    0 Votes
    8 Posts
    979 Views
    Alan KilbornA

    @mkupper said in Screen location when Notepad++ restarts:

    Alt+spacebar to activate the shortcut menu is also useful to help locating a hidden or lost application as it will pop up on the edge of the monitor nearest to where the application is hidden or parked.

    Yes, this is a good tip, as it gives one a hint in what directional arrow to use (if one’s going to use the keyboard) in order to get the app back on-screen. However, if it is “far” away, the user may hold down the arrow key for a LONG time and think it isn’t working…

  • Notepad settings are reset after an abnormal shutdown.

    3
    0 Votes
    3 Posts
    195 Views
    wonkawillyW

    I have similar problems sometimes, even if I use Npp portable versions. Probably some file that Npp is writing to the disk gets corrupted cause of the abnormal shutdown.
    Nevertheless I frequently do a complete backup to a compressed archive of the folder with plugins and my customization and so on. So, just in case, I can delete the corrupted folder and decompress the whole Npp folder having back al my main customization ready to restart working in seconds.

    It is also possible even to implement a little script to make the Npp folder backup automatically.

  • Double entry in pop-up. How to remove?

    3
    0 Votes
    3 Posts
    401 Views
    wonkawillyW

    @Mugsys-RapSheet said in Double entry in pop-up. How to remove?:

    . Is there a simple fix?

    You could edit the right click menu on your OS with the tools embed into your OS it self: there are different methods to do it and some of them are dependent on the OS version your computer has. For example you could modify the OS Register with regedit, but you really need to know how to, so you first need to get used to it and read some tutorials online to work with this solution.
    Online there are also some applications (even free) that you can use to make a bit easier modifing the contextual right click menu for the targeted file type. For example Nirsoft ShellMenuView or ShellExView Shell Extensions Manager are small utilities that display the list of static menu items that appeared in the context menu when you right-click a file/folder on Windows Explorer, and allows you to easily enable or disable unwanted menu items. Of course there are also others.

  • Map language to extension

    9
    0 Votes
    9 Posts
    476 Views
    Alan KilbornA

    @Mark-Olson said in Map language to extension:

    print(f’{ext_lang_dict = }‘)
    print(f’{lang_ext_dict = }')

    As long as PythonScript 2.x is what is installed via Plugins Admin, we probably shouldn’t publish PS3-only scripts.

    Suggest changing these two lines to:

    print('ext_lang_dict:', ext_lang_dict) print('lang_ext_dict:', lang_ext_dict)

    and, of course, adding this line at the very top of the script file:

    from __future__ import print_function
  • Homemade UDL location

    3
    0 Votes
    3 Posts
    796 Views
    Sayanel01S

    @PeterJones Clear and perfect explanation, thank you!

  • How to save 1000+ fills at once?

    8
    0 Votes
    8 Posts
    743 Views
    Alan KilbornA

    @Junuk-Seo said in How to save 1000+ fills at once?:

    I am getting the error “‘Please check whether this file is opened in another program’”.

    This doesn’t make sense as the assumption was that the files are all new 1, new 2, etc files (as otherwise all you need to do is a Save All), and thus these “files” could not be open in another program. Perhaps that was a bad assumption.