• How to set tab size for user defined language?

    3
    0 Votes
    3 Posts
    2k Views
    PeterJonesP

    @Mario-Valle ,

    As far as I know, there isn’t a native way in Notepad++ to change the tab setting on a per-UDL basis.

    That would be nice, and in theory, you could put in a feature request. Unfortunately, the UDL system doesn’t often get bug fixes, let alone feature requests.

    However, there may be a workaround; the underlying Scintilla library has a SCI_SETTABWIDTH message, which you can access through a variety of means, including the PythonScript plugin (editor.setTabWidth(2) will change it to two spaces per tab). With some logic, you could write a PythonScript that determines whether the active editor is editing a BiBTeX-UDL-based file, and if so, run that PythonScript setting. If you have PythonScript, or are willing to install it, someone here should be able to give you pointers on how to implement that logic.

    <edit> You might also need to change SCI_SETTABINDENTS, depending on your Settings > Preferences > Language > Tab Settings > [Default] settings </edit>

  • Is there a way to view in split screen the final outcome of my code?

    2
    0 Votes
    2 Posts
    321 Views
    PeterJonesP

    @Joshua-Barbour ,

    Notepad++ is a text editor. It is often used to edit underlying code, but you have to rely on something else (another application, or at least a plugin) to do something with that code.

    You don’t mention what kind of code it is. Is it something like a batch file or Python program which runs using an interpreter? Is it code like c/c++ that needs to be compiled? Is it HTML, which needs to be rendered using a browser? All of those would have a possible answer which might or might not make you happy, but since you give no clue as to which it is, your question is virtually impossible to answer.

  • XML FILE- FIND and REPLACE

    2
    0 Votes
    2 Posts
    179 Views
    Hüseyin Can CömertH

    I have managed to do it. :)
    Thanks anyway.

  • Question about Word wrap spec with tab indented line

    5
    0 Votes
    5 Posts
    405 Views
    S

    @litos81 said in Question about Word wrap spec with tab indented line:

    ExtSettings

    Thank you very much the information.
    I solved it.
    Regards,

  • Run tab question

    2
    0 Votes
    2 Posts
    168 Views
    Alan KilbornA

    @Sara-Uyehara

    You don’t. You use the View menu choices:

    Imgur

    If you have a more-specialized need (e.g., different browser?), post again.

  • Transpose multiple lines Horizontally in rows

    9
    0 Votes
    9 Posts
    1k Views
    Terry RT

    @Akruti-Clinic said in Transpose multiple lines Horizontally in rows:

    No data changed

    I am referring to this
    3027cd08-02f8-4d28-bf77-1c33c8fcc4a0-image.png

    The order of the lines changed and some text was missing, namely Price - which showed on the first line immediately behind chinttt.

    I am thinking that English is not your primary language as the last sentence you wrote i thinks its going more comple will find another, I do not understand. If you are still having issues, explain the problem. As you supplied some “real data” which allowed me to fix the previous problem, maybe you can show further examples where the process did not work and maybe it is still possible to update the solution to accommodate any other need.

    Terry

  • 0 Votes
    6 Posts
    348 Views
    Alan KilbornA

    @Alan-Kilborn said in Let result lines for text search pattern appear only once even if there are more occurrences?:

    change Find what to `foobar(?-s).*

    Bit of an error here, in formatting; THIS:

    Now, the workaround:

    change Find what to `foobar(?-s).* change _Search Mode to Regular expression

    SHOULD BE:

    Now, the workaround:

    change Find what to foobar(?-s).* change Search Mode to “Regular expression”
  • Extend syntax highlighting for a certain language

    10
    0 Votes
    10 Posts
    4k Views
    W

    @PeterJones said in Extend syntax highlighting for a certain language:

    That’s a different problem than adding tags to the list of valid tags.

    Of course it is - after my success with patching langs.xml in order to colour my invented tags, I wanted to go one step further. Now I know that it’s not possible.

    via the script EnhanceAnyLexer.py that @Ekopalypse shares

    Interesting, but for my purposes too complicated. So I’m going to stick with my patched langs.xml, this solves the main problem, the rest would just be “nice to have”.

    Thank you for your support.

    whitecat

  • How to change the theme for an ordinary Windows user?

    7
    0 Votes
    7 Posts
    531 Views
    PeterJonesP

    @PeterJones wonders how well the double negative will translate…

    That’s one of those idiomatic things that each language treats differently…

  • Help me find this menu "open file in browser"

    13
    1 Votes
    13 Posts
    486 Views
    PeterJonesP

    @andrecool-68 said in Help me find this menu "open file in browser":

    I don’t think we understand each other at all.

    I agree.

    However, I am just going to drop it, because we both apparently understand how to make it translate both the menu entry and the shortcut mapper entry, even if we don’t like or agree with the way the other of us has tried to explain it.

  • NppFTP - File attributes

    3
    0 Votes
    3 Posts
    241 Views
    andrecool-68A

    Total Commander has such an option!

  • Recent Files help wanted

    4
    1 Votes
    4 Posts
    239 Views
    PeterJonesP

    @Alan-Kilborn ,

    Sorry, @Alan-Kilborn , I cannot replicate.

    Unzip fresh NPP v7.9.1-64 portable run type a Save> new 1.txt New
    77ea0181-47f2-4e32-8c47-b5676aaef430-image.png Close new 1.txt
    eb55c7e3-a141-410e-af5c-9a23726d2113-image.png Notepad++ v7.9.1 (64-bit) Build time : Nov 2 2020 - 01:07:46 Path : C:\usr\local\apps\npp\npp.7.9.1.portable.x64\notepad++.exe Admin mode : OFF Local Conf mode : ON OS Name : Windows 10 Enterprise (64-bit) OS Version : 1903 OS Build : 18362.1139 Current ANSI codepage : 1252 Plugins : mimeTools.dll NppConverter.dll NppExport.dll
  • Replace character in capture group

    28
    0 Votes
    28 Posts
    5k Views
    guy038G

    Hello, @peterjones,

    Sorry, I’ve just seen your post where you asked people to verify the N++ official documentation ! I’ll try to have a look, myself, very soon. It would be better to do it before the next release of the website !

    But, as I said to Alan, at the moment, my TO DO list, concerning N++ or else, is getting much longer ;-))

    Cheers,

    guy038

  • How to merge 2 separate lines into 1 line for a numerous amount of data?

    8
    0 Votes
    8 Posts
    443 Views
  • Bug with Language ?

    7
    0 Votes
    7 Posts
    513 Views
    AndreiA

    @PeterJones thank you. I put nativeLang.xml file to %AppData%\Notepad++\ with GPO. My problem solved.

  • Crash when type the text

    4
    0 Votes
    4 Posts
    267 Views
    PeterJonesP

    @Tseng-Alvin ,

    The reason @rinku-singh asked was because we have seen problems with the re-packaging that sites like portableapps use, causing things to not work.

    With Notepad++, there is no reason to risk someone else’s re-packaging, because a portable zip has been made available with every release on the official downloads page.

  • Regex Search Help!

    6
    0 Votes
    6 Posts
    340 Views
    Alan KilbornA

    @Nick-Brown 's regex is problematic for at least 2 more reasons:

    it does a greedy search rather than a minimal search, meaning that it will match something like "Number":"12345","23456","34567", fully, not stopping after only matching “one number”, which seems to be what the OP desires

    in conjunction with the first point, without specification of whether or not the . should match newlines, this regex could potentially match a lot of lines and a lot of data!

  • Hyperlinks not clickable anymore

    2
    0 Votes
    2 Posts
    323 Views
    L

    @BernieStn said in Hyperlinks not clickable anymore:

    Is this a known issue?

    I’m using Notepad++ 7.9 and it does recognise the last two lines as URLs I guess the protocol part of the URL is necessay for Notepad++ detect as a proper URL. Could you please check if you have enabled the option to make links clickable? (https://npp-user-manual.org/docs/preferences/#misc). Settings > Preferences... > MISC

    Also, it may help to post here Notepad++'s Debug info... that is under the ? Menu, and whether you are using any particular theme.

  • Hotkeys for Zoom don't work!

    5
    0 Votes
    5 Posts
    627 Views
    Дмитрий 1Д

    Peter Jones, thank you very much! I found the " / " key on the numeric keypad! Hotkeys a work now :)

  • Dual View

    3
    0 Votes
    3 Posts
    202 Views
    Tom OveringtonT

    Thank You Kindly. Figured it was something simple. Tried everything except that.