• How to add UDL key words

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Robert-Hemingway

    dropdown box with suitable words, as you type

    therefore you need to provide an API file with the same name as your UDL is.
    See plugins\APIs directory for examples.
    The keywords within udl are just for syntax coloring.

    Also what is the understanding behind “instre1” “type1” …“type4” in the langs.xml file <Keywords name= ?

    That is basically a link to the stylers.xml to provide the information which style should be used
    for which keyword group. Please note, that not every language supports the same amount
    of keyword groups and even not the same keyword group link names.

    Cheers
    Claudia

  • Run Perl

    Locked
    2
    0 Votes
    2 Posts
    5k Views
    Scott SumnerS

    @Robert-Shiffman said:

    https://www.youtube.com/watch?v=caPbaB219bQ

    The video you referenced is actually pretty good as far as the pure mechanics of setting it up go. You are missing a $ in front of (FULL_CURRENT_PATH) in your post; it should be $(FULL_CURRENT_PATH). That part is the “magic” which allows you NOT to have to change anything to run different .pl files that you edit with Notepad++, contrary to what you said about “change the command each time…”.

    You can find the text of the existing commands of the Run menu in the shortcuts.xml file. It’s location can vary depending upon your Notepad++ install; easiest way to find it the first time is probably a search for it.

  • Encoding issue V 6.7.3

    6
    0 Votes
    6 Posts
    3k Views
    NippurDeLagashN

    @Claudia-Frank said:

    A possible solution using python script plugin has been shown here.

    Cheers
    Claudia

    It does exactly what I need, and it works fine. Thanks a lot for the suggestion.

  • more keywords as 8 for a language style

    Locked
    6
    0 Votes
    6 Posts
    3k Views
    Claudia FrankC

    @RedstoneFuture-TV

    and to be honest, it is only half the truth as you need to wrap this all in a plugin.
    But may I ask you why there is a need to have more than 8 different keyword group styles?
    Does this really makes sense?

    Cheers
    Claudia

  • Help to directly load visual studio solution into the notepad++

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Frank-Wang

    not the newest infos but a good starting point.
    http://docs.notepad-plus-plus.org/index.php/Plugin_Development#How_to_develop_a_plugin
    In addition, check some of the other plugins code to learn.
    Most of them are open source on github and sourceforge.

    Cheers
    Claudia

  • 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
    9k 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
    43k 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.