• CSS language with @media

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Regex: Insert new line at the beginning of file

    Locked
    6
    1 Votes
    6 Posts
    8k Views
    Vasile CarausV

    Notepad with Regex is much easy to use, for me, which I am not a programmer. And, I believe, there are many people like me… Not everyone is a programmer.

  • Regex: Select only the line 27 (mark a particular line)

    Locked
    11
    0 Votes
    11 Posts
    5k Views
    guy038G

    Hi Vasile Caraus,

    Just see my solution, below, in topic about replacing by multiple values of a same line :

    https://notepad-plus-plus.org/community/topic/12341/regex-double-your-words/9

    Cheers,

    guy038

  • Automatically add space to end of line

    Locked
    6
    0 Votes
    6 Posts
    4k Views
    Scott SumnerS

    It works because the Alt+Lclick is really starting a column-block, just no drag while holding Alt down to define that block. Column-blocking, out of necessity, needs to work with virtual spacing as some lines that may be in the column block might be shorter than others.

    I don’t turn on permanently the beyond end-of-line movement modification as guy038 describes, because I found that that causes some strange behavior with auto-indentation in the language I typically use most often (Python). Actually, I do have a pythonscript tied to a keypress that toggles cursor end-of-line “freedom” mode on and off for when I want it.

  • Modifying police size

    Locked
    5
    0 Votes
    5 Posts
    3k Views
    MAPJe71M

    Thanks!

  • Delete spelling suggestions

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Scott SumnerS

    Go to the Settings dropdown menu.
    Choose Preferences…
    In the box on the left, select “Auto-Completion”
    Disable (uncheck) choices on the right until you are happy with the result.

  • What this regex doing?

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    guy038G

    Hello Vasile Caraus,

    In replacement regex, the contents of a nth subset of parentheses, defining a group, in the search regex, may be written in THREE different ways :

    From \1 to \9 So, this syntax is acceptable if you don’t have more than 9 capturing groups, in the search regex

    From $0 to $N In the syntax $N N may be a number, greater than 10. I didn’t try it, but I suppose that N can be up to 65535 !!. Just note that $0 represents the totality of the match, whereas $1 stands for group 1, $2 stands for group 2 and so on…

    From ${0} to ${N}, with the SAME syntax as above. This said, what is the interest to surround the number by curly braces ? Do you guess it…

    Well just imagine that you want, for instance, to rewrite, in replacement, the contents of group1, but preceded and followed by the string 999. At first sight, you would simply write 999$1999. However, after replacement, you just obtain the string 999 !
    Because the regex engine thinks that you want to write the literal string 999, followed by the contents of group $1999. As, of course, this group does not exists in the search regex, it just replace the non-defined group $1999 by an empty string !

    Therefore, the solution consists to use the third and right syntax, giving the replacement regex 999${1}999

    So, Vasile Caraus, when you write $1\2, in replacement ( or also $1$2, \1$2 or \1\2 ) as you didn’t define a second group, in the search regex, this is just equivalent to the simple \1 or $1 syntax.

    And, as the group 1 (.+) represents all the standard characters of a NON-empty line, between the two assertions Beginning and End of line, you just replace any line by itself !!

    Then, it’s obvious that hitting CTRL-Z cancels each S/R, giving back the identical original lines :-))

    Best Regards,

    guy38

  • Irregular BOM Code in text file triggers font change

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Where are View Menu Hide Margin toggles stored?

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • pound character is using double byte C2A3 instead of single byte A3

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    Claudia FrankC

    @Harishkumar-Pathangay

    In HEX Editor Mode, why it is converting to Unicode?

    this plugin was written back in 2009 and at this time npp didn’t support
    encodings like today, only the standard ansi, utf-8 … were available.

    Cheers
    Claudia

  • Curl Error when trying to update?

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • Regex: crossword maker / mix words

    Locked
    9
    0 Votes
    9 Posts
    5k Views
    Vasile CarausV

    works perfectly ! what can I say? you are grandiose ! THANK YOU !!

  • AutoComplete Problem

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Jim DaileyJ

    @Ghotihead
    I don’t think you are doing anything wrong. I think the “:” is the problem. I don’t think it affects auto-complete, but I do think it affects the function help tool tip.

    I have a lot of keywords that contain some special characters (e.g. gBS->AllocatePool), but I have to use only the function name (e.g. AllocatePool) and overload it with multiple definitions when there are more than one function of that name.

    So, I think you might have to define all your namespace:functions as keywords, and then overload the functions with multiple definitions (and maybe some text that identifies the namespace of each?).

  • How do i remover the header & footer page but keep line breaks

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    gerdb42G

    @Gary-Seven
    I think if you completely remove the footer NPP will use that space for printing and thus move the page break. You may try the following:

    Add a non-printing character to the footer like Space or Non-Breaking Space (U+00A0) increase the bottom page margin Insert a Form Feed character (U+000C) into your document (not sure whether NPP honors this though)
  • Find a occurence between some different lines

    6
    0 Votes
    6 Posts
    3k Views
    guy038G

    Hello Mario,

    To get, from cursor location the next bloc of lines, beginning with a header t###, till the nearest word TURN, in that exact case, use the regex, below :

    (?s-i)t\d+\R((?!\Rt\d+\R).)*?TURN

    Afterwards, it’s possible :

    Perform a first search

    Copy that selection in the clipboard ( CTRL + C )

    Switch to a new tab, previously created

    Copy the clipboard’s contents ( CTRL + V )

    Type on the F3 key to begin again all the process !

    Cheers,

    guy038

  • Backtick string background color

    Locked
    3
    0 Votes
    3 Posts
    4k Views
  • How to format an .XML file?

    12
    0 Votes
    12 Posts
    39k Views
    gerdb42G

    @Claudia-Frank

    if the file doesn’t contain proper end of line chars (windows uses “carriage return” + “line feed”) it is
    displayed as a single line in npp.

    NPP happily handles Windows (CR+LF), Linux (LF) and classic Mac (CR) line endings even in mixed form. Maybe some plugin does odd stuff here?

  • Help with NppExec!!!

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Jim-Turner-Jr.

    you followed the manual?
    4.7.2. Compiling Java ??
    Did you double check if java environments variables really exists ? Like %JAVA_HOME%?

    Cheers
    Claudia

  • How to change the icon?

    Locked
    3
    0 Votes
    3 Posts
    9k Views
    Claudia FrankC

    @Malaclypse

    I don’t have windows 8.1 but what if you delete the shortcut in the taskbar and
    recreate it by using the one on the desktop (right click->pin on taskbar)??

    Cheers
    Claudia