• Search & Replace with carriage return regex (?-s)"." doesn't work

    3
    1 Votes
    3 Posts
    442 Views
    Alan KilbornA

    @Edwin-T

    I think what Eko is getting at is that there are several types of double quotes when one considers unicode and maybe what you are searching for isn’t the same type as in your document. Note also that sometimes the opening double quote is the same as the closing double quote, and sometimes they are different. Know your data.

  • NPP with TextFx versions, what are the latest?

    2
    0 Votes
    2 Posts
    1k Views
    dinkumoilD

    @Ben-Nash

    Some years ago the TextFX plugin was part of all Notepad++ installations. This has changed somewhere in the past. Now you have to install it separately via PluginsAdmin, the new build-in plugin management system of Notepad++ since v7.6.

    Note: Do not use the old PluginManager anymore, it is not suitable for recent versions of Notepad++ !!.

    Though there is also a 64 bit version of TextFX you should not use it, it isn’t working reliable. Take the 32 bit version instead. Thus you have to install a 32 bit version of Notepad++ as well.

    But you should use the latest version of Notepad++ which is v7.7.1. You can download it at the project’s website.

  • Notepad++ WebEdit

    3
    0 Votes
    3 Posts
    703 Views
    Michael VincentM

    Here’s a quick example with NppExec which will handle Bold for HTML and Markdown based on file extension:

    NPP_CONSOLE keep IF "$(EXT_PART)"~=".html" THEN SEL_SETTEXT <b>$(CURRENT_WORD)</b> ELSE IF "$(EXT_PART)"~=".md" THEN SEL_SETTEXT __$(CURRENT_WORD)__ ENDIF

    Save that script as “Bold Current Word” and add it to the Macro menu with NppExec and then use “Settings” => “Shortcut Mapper…” to map the CTRL-B shortcut to it.

    Adding additional scripts to do Italics for example can be done with simple modifications to the above example and is left as an exercise for the reader.

    Cheers.

  • Changing into Admin mode removes all changes

    4
    0 Votes
    4 Posts
    757 Views
    Anders Eriksson22A

    Thanks for the tip of NppSaveAsAdmin . It was not available from the PluginsAdmin, but I downloaded it from SourceForge

    Works perfectly!!

    One problem less…

    // Anders

  • How to merge

    19
    0 Votes
    19 Posts
    14k Views
    Adam LuwikoA

    @guy038 THANKYOU SO MUCH sir, thats what im talking about. you saved my live. god bless you I hope you have an amazing day.

  • Feature request: convert radix of a number on each line

    5
    0 Votes
    5 Posts
    501 Views
    rinku singhR

    @Adam-Yik said:

    Thanks. Really hope someone take this, add more features (like you have two boxes, the “from” and the “two”, which only accepts a decimal integer ranging from 2-36, this is the radix, similar to javascript’s [parseInt(string, radix)] and [number.toString(radix)]), and post this to a “submission section” (as in, a public place containing lots of plugins for notepad++, and/or also available on the menubar -> Plugins -> Plugins Admin -> Available tab).

    this Hex_2_binary plugin not really very useful . i’m author of remove duplicate lines plugin already. if you should Hex_2_binary plugin make better then explain me .actually i’m week in english.

  • ASP.Net MVC

    4
    0 Votes
    4 Posts
    184 Views
    rinku singhR

    you have to do a plan using Remove duplicate lines plugin

  • find openned document by title name

    5
    0 Votes
    5 Posts
    392 Views
    PeterJonesP

    @jiri-vesely said:

    Wait what i put plugin dll into plugins folder and imported it , but nothing is showing in program, or under plugins and i restarted it.

    Based on this symptom, I diagnose that you are using Notepad++ v7.6.3 or newer (hopefully v7.7.1). If so, then put navigateTo.dll as plugins\NavigateTo\navigateTo.dll, then restart notepad++.

  • UDL - User Defined Languages has some very silly limits

    11
    0 Votes
    11 Posts
    16k Views
    EkopalypseE

    Correct, the EnhanceUDLLexer.py is optimized for UDLs whereas
    EnhanceAnyBuiltinLexer.py should be used for builtin lexers.

    @WildCactuar - if you are using a recent npp version, like npp 7.7 onwards then
    pythonscript plugin can only be used if you are using a 32bit version. 64bit is broken.
    If it is only about to get the telephone numbers highlighted, then you might think of using
    a regular expression like \d{3}-\d{3}-\d{4} and using mark feature from find dialog.
    Record a macro if you want to reuse it more often.

  • Using the Find in File tool?

    2
    0 Votes
    2 Posts
    462 Views
    PeterJonesP

    @Michael-Jackura said:

    how do I do it when the file/s are on the web server

    That’s not a native Notepad++ feature

    In pure Notepad++: You must download the files to your PC, or have mounted the server so that Windows can see it. If you’re using the NppFTP plugin for Notepad++, then you just have to open those files through the remote interface, and then you should be in %AppData%\Notepad++\plugins\config\NppFTP\Cache. Or you use an application that crawls a website and can grep it for certain terms.
  • 0 Votes
    12 Posts
    3k Views
    CletosC

    THAT sounds simplest for your situation @Cletos , but that’s just my 2c.

    Yes, that is very great, thank you!

    Here’s what I do (note: this is way too advanced for @Cletos), note that I always run portable:

    Yes, extreemly too advanced. Sounds like a quite big effort.

  • add auto-complete support for Google Apps Script TypeScript projects

    4
    0 Votes
    4 Posts
    3k Views
    EkopalypseE

    @imthenachoman

    npp knows only the concept of having statically defined completions lists.
    If you want such functionality you need to find out if the language
    in question offers some tools which can be used by npp to introspect your object.

  • *_js.php as javascript style

    6
    0 Votes
    6 Posts
    661 Views
    Jesus CamposJ

    Hi, thanks for the script. It opened a new world to me :)

    I Changed the enumerator [NOTIFICATION.FILESAVED] to [NOTIFICATION.FILEOPENED] and It worked but with a problem: if I do not have any opened file it work well, if I have, it change the language to the first opened file… So, I just added notepad.activateFile(filename) before the menu command and it work ok :)

    Thanks!

  • Migration: How to preserve serial length

    2
    0 Votes
    2 Posts
    286 Views
    PeterJonesP

    @R-van-Wingerden said:

    Is there a option in Notepad++ to preserve

    I’m not sure what you’re trying to preserve, or what you think Notepad++ didn’t preserve for you.

    If you only changed https://oldname to https://newname, then nothing else should have changed. However, if your oldname or newname were not literally those, but included regex characters, and you had enabled regular expression search/replace mode, then that might explain things.

    But so far, I don’t see that you’ve given us enough information.

    -----

    Please Read

    FYI:

    This forum is formatted using Markdown, with a help link buried on the little grey ? in the COMPOSE window/pane when writing your post. For more about how to use Markdown in this forum, please see @Scott-Sumner’s post in the “how to markdown code on this forum” topic, and my updates near the end. It is very important that you use these formatting tips – using single backtick marks around small snippets, and using code-quoting for pasting multiple lines from your example data files – because otherwise, the forum will change normal quotes ("") to curly “smart” quotes (“”), will change hyphens to dashes, will sometimes hide asterisks (or if your text is c:\folder\*.txt, it will show up as c:\folder*.txt, missing the backslash). If you want to clearly communicate your text data to us, you need to properly format it. That topic also explains how to embed images by uploading them to a public server like imgur.com, and embedding them using the syntax ![](http://i.imgur.com/QTHZysa.png)

    If you have further search-and-replace (“matching”, “marking”, “bookmarking”, regular expression, “regex”) needs, study this FAQ and the documentation it points to. Before asking a new regex question, understand that for future requests, many of us will expect you to show what data you have (exactly), what data you want (exactly), what regex you already tried (to show that you’re showing effort), why you thought that regex would work (to prove it wasn’t just something randomly typed), and what data you’re getting with an explanation of why that result is wrong. When you show that effort, you’ll see us bend over backward to get things working for you. If you need help formatting, see the paragraph above.

    Please note that for all regex and related queries, it is best if you are explicit about what needs to match, and what shouldn’t match, and have multiple examples of both in your example dataset. Often, what shouldn’t match helps define the regular expression as much or more than what should match.

  • File Backup Failed

    5
    0 Votes
    5 Posts
    1k Views
    Alan KilbornA

    @paulteigeler

    …or can fix it

    I think it falls in the feature request arena; it’s not something that is technically broken.

  • v7.7.1: Syntax highlighting & coloring is only "partial" working

    3
    1 Votes
    3 Posts
    1k Views
    The Ghost RiderT

    Thank you so much - I´ve overseen the double quotes on fact of serious eye problem. :-(

    Now everything works fine and it looks good!

  • We need to talkt about the "modified file" bug

    2
    -3 Votes
    2 Posts
    376 Views
    gstaviG

    Notepad++ offers you a few modes for File Status auto-detection:

    Disabled. Enabled. Which is what you describe. Enabled and update silently. Which is my default.

    For every mode some user can come with some flavor of your “hey” comments:
    Disabled - “hey I just checked out my latest git repo and then overwrote by mistake 5 files with old versions”.
    Enabled - “hey, see your example above”.
    Update silently - “hey I just checked out my latest git repo and lost 4 hours work for unsaved file”.
    Your proposed notify on tab switch mode = “hey I checked out my latest git repo and 2 hours later I still get a modified warning when I switch between my 500 open tabs”.

    All of these comments are correct in the right context. And all of them are also wrong. Notepad++ gives plenty of choices and a user has a responsibility for his choices.

    Forgive me for quoting myself from another ticket: Try to be a little less egocentric and realize that Notepad++ needs to balance different requirements of thousands of usage patterns.

    So we don’t need to talk about the non-bug you describe. But you may politely offer a well thought improvement to Notepad++. But also expect some push back from other users with different use cases.

  • MAC encoding in cyrillic Windows

    3
    0 Votes
    3 Posts
    788 Views
    Сергей ЗеленовскийС

    Thank, works. So, for my example, the mozilla chardet library does not work correctly.

  • Java Class Comment Remove

    2
    0 Votes
    2 Posts
    679 Views
    rinku singhR

    find what : ^.*\*/
    replace with : empty
    search mode : regular expression

    menu item > edit > blank operation > trim leading space
    (https://youtu.be/qjnzZi9UhN8)

  • Need a "Compare" plugin (one I used has stopped working.)

    9
    1 Votes
    9 Posts
    2k Views
    Michel MerlinM

    Have you tried winmerge.org ? More convenient and probably more efficient than NPPP plugin(s).
    Versailles, Sat 31 Aug 2019 16:14:40 +0200