• Request to save

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Jan SchreiberJ

    Recent versions of Notepad++ store the contents of open files automatically and reopen them after the next application start. If you don’t want that behavior, go to Settings -> Preferences -> Backup and uncheck “Enable session snapshot and periodic backup”. Notepad++ will then prompt you for a file name when closing.

  • Loading old shortcuts.xml file, still no macro

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Jan SchreiberJ

    By default, all config data of Notepad++ are saved in and loaded from the folder %APPDATA%\Notepad++. Unless you run N++ in portable mode, it will ignore config files put into the application directory.

  • Column-copy from Find result window gives only last line

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    Ron HermsenR

    Hi Guy,

    Indeed with Crtl-C it works. Thanks for the advice.
    Still I think that using copy from the pop-up window should give the same result, and not only copy the last full line.

    Thanks

    Ron

  • Incorrect line endings

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    Kain VäljaotsK

    Hi,
    existing line endings in opened file do not change at all,
    just editing mode will be wrong, and every new line I add will have windows line endings.

  • Built-In Operators? (Lua)

    Locked
    3
    0 Votes
    3 Posts
    4k Views
    guy038G

    Hello StormFX,

    May be, you could be interested by the Gary Mod 10 Lua syntax highlighter plugin for N++, that you can download, from the link, below :

    https://code.google.com/p/npp-gmod-lua/downloads/detail?name=NppGmodLuaPlugin-v1.5.zip

    For a manual installation :

    Extract the GmodLua.dll library, at top level of this archive, in your N++ plugins folder

    Extract the GmodLua.xml file, located in the Config folder of the archive, in your active N++ Config folder

    It works nice, with my 6.8.1 N++ installation :-))

    Main page can be found at the address :

    https://code.google.com/p/npp-gmod-lua/

    Just, note that this site is, from now on, archived and read-only and that it moved to GitHub :

    https://github.com/kylefleming/npp-gmod-lua

    However, you’ll, still, find some information and the release notes, from the two links, below :

    https://code.google.com/p/npp-gmod-lua/wiki/HowTos

    https://code.google.com/p/npp-gmod-lua/wiki/IntroAndChangeLog

    You may modify the foreground and/or background colours of any of the 19 GmodLua defined styles :

    From the Style configurator, choosing GmodLua in the Language drop-down list, then any style, proposed in the Style drop-down list

    Directly changing values of the fgColor/bgColor items, in the LexerStyles node, at the end of the GmodLua.xml file

    Best Regards,

    guy038

    P.S :

    I’m wondering : are you the same guy, to whom I replied, in March 2014, on SourceForge forum, and who asked for help, with these funny terms Thx 4 F1 ?

  • NP++ as default .txt editor on W10

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Find and Replace

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    guy038G

    Hello Linda,

    regular find/replace wont work because each line is different in those spaces

    I don’t understand very well ? May be, your text contains some tabulation character, which don’t match the same physical space length ?

    If so, I would advice you, to replace, first, any tabulation by the corresponding amount of space characters, with the menu command Edit - Blank Operations - TAB to Space

    Then, taking your previous example, just perform a simple regular search/replace operation like, for instance :

    SEARCH = ^.{219}\K... and REPLACE = EMPTY to delete from the 220th till the 222th characters

    SEARCH = ^.{219}\K... and REPLACE = ABC to insert a fixed string between the 220th column till the 222th column

    SEARCH = ^.{219}\K(...) and REPLACE = [\1] to surround the characters, between the 220th and the 222th, with two square brackets

    IMPORTANT :

    Due to the special \K syntax, you must use a global replacement, clicking on the Replace All button

    If you prefer use a step-by-step replace operation, the different S/R, above, should be rewritten as below :

    SEARCH = ^(.{219})... and REPLACE = \1 to delete from the 220th till the 222th characters

    SEARCH = ^(.{219})... and REPLACE = \1ABC to insert a fixed string between the 220th column till the 222th column

    SEARCH = ^(.{219})(...) and REPLACE = \1[\2] to surround the characters, between the 220th and the 222th, with two square brackets

    Hope that helps you a bit !

    Best Regards,

    guy038

    P.S. :

    The nice thing, about the \K syntax, is that anything that matched before the \K form, is forgotten by the regex engine! So, in the examples above, the matched string (...) is, ONLY, the three characters, at positions 220, 221 and 222 :-)

  • Right-Click >> Print is missing when notepad is standard text program

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Is there a way to create a new language based on an existing one?

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    dailD

    No there is not unfortunately. I’ve looked into this in the past making my own variant of C. The User Defined Languages work completely differently from the ones already built in. There are ways of adding new keywords to existing languages though if this is all you are wanting to do. If you use the menu Settings > Style Configurator... and select VB under the languages languages and WORDS under the style list, towards the right you can add user-defined keywords. This may not be exactly what you were wanting but it may be enough to get by if you don’t want to recreate VB as a user defined language.

  • SherloXplorer Error

    Locked
    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Can not write or delete anything!?!

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • please help to compile c and make the output exe file on windows 7

    5
    0 Votes
    5 Posts
    4k Views
    Jan SchreiberJ

    You might also want to have a closer look at the NppExec plugin. It will catch and display any compiler output in a dockable panel.

  • Npp forget last position of the file

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    László RestásL

    #Solved.
    An updated plugin was the problem. I removed all of the updated plugins and now works good.

  • Vertical Indent Guidelines Don't Match Tab Settings

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    John ZimmermanJ

    Turns out that the font size settings in

    C:\Users[user]\AppData\Roaming\Notepad++\stylers.xml

    were not consistent, and apparently the grid lines were set to the largest font size, even though all the php font settings were for 8pt;.

    By doing a global change of

    fontSize=“10”

    to

    fontSize=“8”

    the vertical indent guidelines are now properly aligned.

  • Unattended Installation (Auto Update Disabled)

    Locked
    4
    0 Votes
    4 Posts
    11k Views
    Greg ChapmanG

    THANK YOU, that’s awesome!

    Greg

  • Find and Replace strings, Edit Text behaviour in N++

    Locked
    5
    0 Votes
    5 Posts
    4k Views
    Eduardo BorgesE

    Oh God, I feel so happy, and so embarassed. I did not read your entire answer before replying. The devilish “autocomplete” is now just ticked off, all right. No need to kill, just tick it off; shame on me, and many thanks on you. A probable serious engagement to Notepad++ is now on sight.
    Thanks again,
    Ed
    P.S. Maybe of use to you: If you may sometimes feel in need of a Keep on Top utility, I use tiny Deskpins.exe to good measure.

  • Copy text from search text in folders

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Copy marked text

    Locked
    1
    0 Votes
    1 Posts
    6k Views
    No one has replied
  • Macro disappears after closing notepad++

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    dailD

    It is a bug. It was just fixed and will be in the next release.

  • Can I restore files after a Windows crash?

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied