• Python Module Not Found

    Locked
    5
    0 Votes
    5 Posts
    2k Views
    Eko palypseE

    @PeterJones

    From my vague knowledge of LSP (I’ve run across the term a few times, but never used an LSP-enabled system), I think that’s one of the problems that LSP addresses, but I’m not sure.

    exactly, the goal is to have the “language” responsible to provide such information
    instead of reinventing the wheel by every editor. LSP defines just the protocol how
    a communication of a client and a server has to work, the editor implements
    the client part whereas some other instance provides the server part.

  • Script element not working properly(?)

    Locked
    3
    0 Votes
    3 Posts
    786 Views
    PeterJonesP

    @Harlan-Nguyen ,

    @Eko-palypse answered your initial question, which is probably a reasonable answer.

    But really, this forum is focused on the Notepad++ editor-specific aspects of using Notepad++. It’s not a general “help me debug whatever it is I am using Notepad++ to edit” forum. This is explained with the humorous example of baking cookies in this FAQ.

  • open in administrative mode

    5
    0 Votes
    5 Posts
    7k Views
    Stéphane BoisvertS

    Thank you both very much!

  • how to get current file status saved or not c# NPPN_FILESAVED

    5
    0 Votes
    5 Posts
    1k Views
    Eko palypseE

    @gurikbal-singh

    afaik, there is no npp api function available to find out if a file is dirty or not.
    As said, you can either compare the current buffer with the file on disk
    or check the menu save item if it is disabled or enabled.

  • Save As Command

    8
    0 Votes
    8 Posts
    2k Views
    Meta ChuhM

    @Barry-Alter

    thanks for the thanks ;-)
    if any specific answer(s) were helpful, please don’t hesitate to also give it/them an upvote

    You guys are a rough unforgiving group

    it depends on who is online first, as you can see in my detailed direct response to you.
    i didn’t even look up if you already asked the same question, even if i had a kind of deja vu.

    maybe you guys could lighten up a bit.

    most of us are, including defending your question (i quote myself: maybe it’s his first fresh install in two years and the how to’s got forgotten through time.)
    so don’t hesitate to ask any time again

  • Extra Lines break with Compare tool

    Locked
    5
    0 Votes
    5 Posts
    2k Views
    PeterJonesP

    @Mathieu-Chapoton / @Alan-Kilborn,

    Yes, Npp Compare Plugin does display blank lines for lines that don’t exist; for example:

    Imgur

    Those lines aren’t really there in the file; the plugin just shows the blank lines to line things up visually.

  • How to find "~" and replace with CR LF

    Locked
    3
    0 Votes
    3 Posts
    6k Views
    PeterJonesP

    @Anthony-Doshi ,

    @Terry-R answered your immediate question, but if you have further search-and-replace (regex) needs, you can 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 the data so that the forum doesn’t mangle it (so that it shows “exactly”, as I said earlier), see this help-with-markdown post, where @Scott-Sumner gives a great summary of how to use Markdown for this forum’s needs.
    Please note that for all “regex” queries – or queries where you want help “matching” or “marking” or “bookmarking” a certain pattern, which amounts to the same thing – 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.

  • Macro: problem to indent

    8
    0 Votes
    8 Posts
    2k Views
    Alan KilbornA

    @Pierfrancesco-Marro said:

    news about this problem?

    There wouldn’t be any news unless there is an open issue for it. See here: https://github.com/notepad-plus-plus/notepad-plus-plus/issues

  • 1 Votes
    3 Posts
    708 Views
    Terry RT

    @Stanislav-Elvenisko-Hoferek
    I’m not sure what your second post was meant to say. Did you even try that?

    My suggestion is start with 1 file opened in NPP and test what I provide. If it works the same method can also work on a bunch of files using the other tab of the Replace function called “Find in Files”.
    So
    Find What:(SOME_COMMON_CONTENT_BEGINNING:)(.+?)(:SOME_COMMON_CONTENT_end)
    Replace With:\1anything\3
    This is using your terminology. Up to you to replace the strings SOME_COMMON_CONTENT_BEGINNING:
    anything and
    :SOME_COMMON_CONTENT_end
    with what your actual data is. Note I did bracket the text we will replace (.+?), this is not necessary, but it won’t change the result.

    Terry

  • npp is crashing after its today's self-update

    Locked
    2
    0 Votes
    2 Posts
    563 Views
    Eko palypseE

    @jano-semo said:

    looks like this

    SourceCookifier

    plugin is making the trouble.

  • Marking over multiple lines.

    Locked
    2
    0 Votes
    2 Posts
    574 Views
    Eko palypseE

    @Richard-Cranium

    not 100% sure but are you looking for a regular expression like this ?
    (?s)class="Action1".*?(?=</property)

  • Problem with Ziped Version and Plugins

    Locked
    3
    0 Votes
    3 Posts
    687 Views
    dtoxic64D

    ok thx for the info, i appreciate it

  • How to change background colour for word highlight

    Locked
    2
    0 Votes
    2 Posts
    825 Views
    Meta ChuhM

    @Ronald-Fischer

    you can set the smart highlighting colours, which are used if you double click on a word, here:

    settings > style configurator > global styles > smart highlighting and set the background colour from green to your prefered highlighting colour.

    Imgur

  • How to view CSV files in tab-like format?

    Locked
    2
    0 Votes
    2 Posts
    5k Views
    rinku singhR

    @MonarchX
    Notepad++ x64 portable
    use setup.exe for plugins

  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • Toolbar shortcut to call a plugin function

    Locked
    2
    0 Votes
    2 Posts
    592 Views
    rinku singhR

    @Comawhite54 said:

    Hello All,

    I am looking for a solution to be able to call a plugin (ie: python debug script) just by clicking a shortcut in the toolbar.
    I do not find any solution to do this?
    The plugin “customise toolbar” does not seems to permit it neither.

    So you know a solution?

    with nppexec plugin
    npp_menucommand <menu\item\name> - executes (invokes) a menu item

  • Newbie question - inserting timestamp

    Locked
    6
    0 Votes
    6 Posts
    7k Views
    Alan KilbornA

    TextFX probably isn’t the best recommendation, given that it is 32-bit only and not maintained. Although it requires the use of another plugin, this thread gives another way of achieving the goal: https://notepad-plus-plus.org/community/topic/13792/date-time-again

  • how to remove empty spaces from a particular tag (regular expression)

    10
    1 Votes
    10 Posts
    6k Views
    Neculai I. FantanaruN

    @guy038 I just review this post, because I like it and remembered the same thing from the post today.

    SEARCH (?s)(?:\G|<p class="oyric">)(?:(?!<|>).)*?\K(?:(^\h+)|\h+$|(?<=>)\h+|\h+(?=</p>)|(\h{2,})(?=[^<\h]))

    REPLACE (?1$0)(?2\x20)

    What if, in case I have another tag, like <em>

    So, @Robin Cruise scenario become:

    <p class="oyric"> Laurie Strode comes to her final confrontation <em> with Michael Myers, the masked figure who has haunted her </em>since she narrowly escaped. </p>

    So, In this case, your regex does not remove empty spaces because of those <em>

  • regex: Match string not containing string

    Locked
    14
    1 Votes
    14 Posts
    22k Views
    Neculai I. FantanaruN

    yes, ok, but if I have an .html file, I will never finnish with this line. :) So, for sure I have a lot of lines and other tags after line six :)

    anyway, I get it. I remove the last part (?=\R) and works.

    (?-i)<p class="TEXTA">(?:([^<>]+<(\w{1,10})>([^<>]+|(?1))</\2>[^<>]+)+|[^<>]*)<(?!/p)[^<>]+?>

    thank you @guy038

    And Happy New Year everyone !!

  • 0 Votes
    2 Posts
    895 Views
    Meta ChuhM

    @Geoffrey-Odhner

    welcome to the notepad++ community

    the line comment option “force at beginning of line” refers to the comment marker (delimiter), not to the comment itself.

    here’s a screenshot with a little example of what will and what won’t be interpreted as a comment if you use it. (comments are highlighted in green)

    alt

    you are correct about the global meaning of this setting, it is not possible to set one line comment delimiter string that will work everywhere and another one that’s only valid at the beginning of a line.
    the only workaround i know of is to use a comment line setting restricted to the beginning of the line and a block comment, which you could use everywhere, but which has to have separate open and close delimiters like /* and */ as they don’t end automatically at the break of a line