• How can I set Notepad++ to indent with spaces?

    10
    0 Votes
    10 Posts
    21k Views
    gstaviG

    @NippurDeLagash
    My reason for needing such behavior is that a source project has many authors. Think of multiple libraries. Coding style is not always strictly enforced (it is a different debate if it should be). And while I may modify any source file during development or debugging it is a good habit that a small fix will respect the original style of the code surrounding it.

  • Search and replace with wildcards

    Locked
    4
    0 Votes
    4 Posts
    5k Views
    Claudia FrankC

    @Corné-Haast

    open find/replace dialog and check regular expressions. (bottom left)
    For find use:

    sdval=".+?"

    and for replace your value.

    The regex looks for sdval=" literally followed by any char until the next double quote appears.

    . = any char + = at least one char expected ? = non-greedy

    More infos how npps regex engine works can be found here.

    Cheers
    Claudia

  • Notepad++ Batch program find lines missing "..."

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Sebastian-Schmidt

    it might be possible that a regex can help in such a case but you need to
    know where exactly the missing G0? needs to be placed but in general
    I would advise to learn a scripting language for solving such problems.
    I, of course, would advise to learn python. ;-)

    Cheers
    Claudia

  • File Associations and Windows 10

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Claudia FrankC

    @Roland-Thomas

    what about using windows default apps applet where you can define
    which program should be the default for which files?

    Cheers
    Claudia

  • Filename tabs

    14
    0 Votes
    14 Posts
    16k Views
    Holger KH

    Responding to this old thread.

    @Scott-Sumner said:

    It must not work the same for me. I am running N++ 6.7.5. If I have multiple tab bar rows (for example, 3 rows), when I click a tab in row 1 or row 2, it automatically gets moved to row 3. So it is not possible to left click only a tab in row 1 or 2 without changing its row to row 3. If I start with a tab in row three, and attempt your steps, all I seem to get is some nice jittery dancing video behavior on the tabs, but I can’t seem to make a tab in row three move up to row one or two.

    The same is true for me, using N++ 7.3.2 (32 bit).

    The workarounds that @glennfromiowa suggested to move a tab from one row to another all do not work for me.
    Only exception: Editing the session.xml does work – but this is way too much effort when you re-order individual tabs frequently. Moving tabs freely should be something you can do on the fly… It is weird and inconsistent that I can set virtually all configuration parameters of my N++ installation from within the GUI – but for moving tabs I have to close the application and edit some XML file…

    To me, it is unintuitive that tabs in a row stick together and that the row with the active tab always moves to the bottom.
    Instead of tab rows forming some sort of unit I would rather think of multiline tabs as a long list of tabs that happens to line-wrap when reaching the end of the line…

    I guess one can get used to this behavior, but my productivity working with N++ would definitely improve by a more intuitive implementation of drag&drop for multiline tabs… Any improvements here would be greatly appreciated.

  • Show ¤ and ¶ symbol instead of [CR][LF] when whitespaces enabled

    9
    0 Votes
    9 Posts
    10k Views
    Alan KilbornA

    @Fetz-Braun

    Thankfully not all of the bad features of Eclipse are found in Notepad++! :-)

  • Disable "Are you sure?" dialog?

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Having trouble with adding CSS document into HTML document

    4
    0 Votes
    4 Posts
    3k Views
    Bill McCaslanB

    Your link and title tags are buried inside the style tags inside the HEAD tag container. I’m guessing your Title might not be working either.

    <head> <style> <link rel=“stylesheet” type=“text/css” href=“style.css” /> <title>Testing</title> </style> </style>

    You don’t use STYLE tags unless you’re actually putting CSS code inside them. Link tags don’t go inside style tags. So because you’re linking to an external CSS file you don’t need style tags at all in the head.

    Your head tag and contents should look like this;

    <head> <link rel=“stylesheet” type=“text/css” href=“style.css” /> <title>Testing</title> </head>

    I think that should work.

  • Inverse to Ctrl+shift+alt+B

    Locked
    2
    0 Votes
    2 Posts
    4k Views
    Claudia FrankC

    @Fernando-Sanz-Sanz

    I do not really understand your question, so a shot in the dark - do you looking for
    Linearize xml ? (CTRL+ALT+SHIFT+L)

    Cheers
    Claudia

  • Making categories for Lua scripts

    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Vile-Mushroom

    means you need to write your own lua lexer as a plugin
    and define some special comment as a folding point.
    Npp and scintilla can/should, from my point of view, only support the
    standard language syntax.

    Cheers
    Claudia

  • XML format not working now on new files

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Daniel-Agin

    What means you import it?
    You can open xml files but npp won’t change order of attributes.
    It will just read it as it is.

    Cheers
    Claudia

  • Auto save of unsaved files

    10
    2 Votes
    10 Posts
    44k Views
    Claudia FrankC

    @glennfromiowa

    thx for sharing - yes it makes absolute sense to backup your data first
    to avoid data loss. I should have mentioned it.
    The backuppath cannot be changed (well it can but then you have to use the cloud).
    Do not really understand why but I guess there are reasons but to be honest
    I didn’t check the source code for this functionality thoroughly so it is still some kind
    of black whole for me. If there would be a option to vote to make it changeable,
    my voice guaranteed. ;-)

    Cheers
    Claudia

  • Save user data during upgrade_or only uninstall?

    2
    0 Votes
    2 Posts
    2k Views
    glennfromiowaG

    I have not experienced this when upgrading NPP via the Upgrade Notepad++ in the Help (? ) menu. I thought I hadn’t customized the stylers at all, but when I looked, I had changed the font a long time ago (probably sometime early in version 6). I also had to look at what is in config.xml, and I would notice if my recent file list were cleared! I’m not sure if the Wiki is current, but as of v5.4.1, at least the stylers and langs files are not touched.

    This page also mentions that

    When it looks like a setting is lost, a common cause is that there are two sets of files, one in the %APPDATA%\Notepad++ folder and one alongside Notepad++.exe. Then either N++ doesn’t read the right file, or the setting was saved into the wrong file.

    Regarding an export of settings, there is an issue on GitHub that discusses it. However, that issue is closed. I left some comments on it, but the issue has been raised and closed before.

  • Using different configs

    3
    0 Votes
    3 Posts
    2k Views
    glennfromiowaG

    This question is old, but I just stumbled across it and also just learned the answer to it: In the Settings menu, select Preferences, and then the Cloud group. Click on the radio button Set your cloud location path here: and then enter your AppData path in the text box. You’ll have to restart Notepad++, but after that, it should pull the settings from your AppData path instead of the Admin path.

  • How can I drag and drop text from a web browser?

    3
    0 Votes
    3 Posts
    2k Views
    Aviv EyalA

    When you update N++, it restarts as the Admin user; This causes several issues, one of them is that you can’t drag-and-drop to it from other programs.

    Once you’ve upgraded it, you need to shut it down and start it up again as a regular user, and drag-and-drop will work again.

  • Folding and user defined language questions

    Locked
    3
    1 Votes
    3 Posts
    3k Views
    Marcin GruszczyńskiM

    A simple test with 10000 lines didn’t show any issues but this doesn’t
    mean that a more complex test with different foldings in between wouldn’t.
    If you could share the file and udl xml we could check if this is the case.

    I wouldn’t want to post the code in question on public forum. But, as I was trying to re-create the problem, I figured, it has something to do with encoding. The original file was marked as UTF-8, performing “convert to ANSI” fixes the problem, moreover when I convert it back to UTF-8 it still works. So, I guess there was something wrong in the file. Thank you for pointing me in the right direction.

    Is there a way to remember folding state?

    Normally this is the case if you have remember current session … enabled (Settings->Preferences->Backup)

    Yes, I have the setting enabled. I’m working with two views open and it seems that the program always unfolds everything on left view, while remembering the state of right view.

    Also, I wonder, if it’s possible to you a phrase containing a whitespace, as a prefix if keyword list. I have this structure:
    *function bla_bla

    end function

    call bla_bla*

    I wonder how to apply the same styler to “call” and a word that comes next, while not affecting words like “recalled”…

  • Increase value of all numbers by fixed amount?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Owpi

    I don’t think so, you better use a scripting language for such a task.

    Cheers
    Claudia

  • displaying arithmetic numbers in notepad

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @mego-zeko

    simply means, that this file is not supposed to be opened by a text editor
    as it contains meaningful binary values.
    Doesn’t your application allow to export the result in a text based format?

    Cheers
    Claudia

  • Notepad++ Wine guidelines

    5
    0 Votes
    5 Posts
    5k Views
    Claudia FrankC

    @Alan-Kilborn

    Alan, I’m far away from being a linux expert - I started using Linux last year in September but
    used npp from day one on.
    Concerning keymappings, I’m using ChaletOS and LinuxLite. (Both are Ubuntu based derivates)
    I think that Ubuntu uses much more system-wide registered hotkeys which let to the issue
    that certain function in npp didn’t work as expected unless I figured out why?
    I remapped or disabled the ubuntu shortcuts and npp did what I expected again. :-)

    Cheers
    Claudia

  • Convert multiple files from UTF-8 to ANSI

    9
    0 Votes
    9 Posts
    37k Views
    Vasile CarausV

    I run this code with python.exe on win10. I only change the path, and I want to test it. But after I copy the code on python.exe, nothing happen.