• "always visible"?

    Locked
    3
    0 Votes
    3 Posts
    764 Views
    Meta ChuhM

    @Fred-Mitchell

    i have the same question 😉

    but if you are searching for the setting to keep notepad++ always on top:
    go to the menu view > always on top as shown at the screenshot below:

    Imgur

    side note: a google search for notepad++ always on top lists @guy038 's post from about 3 years ago at first place 👍

  • How to get a plugin in Notepad >= V7.6

    Locked
    5
    0 Votes
    5 Posts
    4k Views
    Meta ChuhM

    @Hansi-Krause

    in addition to all of @PeterJones 's suggestions, could you please download a portable version from >>> here <<<, extract it to your desktop and run notepad++.exe directly from this folder, and try if you can install plugins using plugins admin ?

    explanation: the portable version will be completely isolated and independent from all other existing notepad++ folders and settings on that machine.
    with the portable version you can try if plugins admin would work for you on a fresh install, just like if it would be on another machine, regardless of any other notepad++ installs you currently have.

    i have one more question: are you eventually behind a corporate proxy server that might block any downloads on your machine ?
    if you want to test this out: open a cmd command shell window and enter ping notepad-plus-plus.org. if you don’t get an answer from 37.59.28.236, you are behind a proxy server, and have to add the proxy ip and port at the notepad++ menu ? > set updater proxy

  • files with R/r extension always open as REBOL

    Locked
    3
    0 Votes
    3 Posts
    786 Views
    jgx65J

    Great, many thanks, it worked!

  • Find and replace in xml file,

    Locked
    17
    0 Votes
    17 Posts
    3k Views
    Guillaume M. CHAZERANSG

    He guys

    I didn’t know only python gurus were working on this issue. ;) Thanks a lots for all these examples!
    I check them (beginning by the last one?) to resolve my issue

    chagui

  • Copy buffer converts NUL to SPACE

    7
    1 Votes
    7 Posts
    11k Views
    PeterJonesP

    Revisit three years later: thanks to @Meta-Chuh in Keep line endings on paste (no LF to CRLF or CRLF to LF)?, I learned of the Edit > Paste Special > Copy/Cut/Paste Binary Content feature, which apparently existed since v5.9 (so was available in v6.8.6 three years ago) which does allow for binary copy/paste. It doesn’t work in conjunction with the TextFX process originally described, but I thought I’d point out for all future viewers of this Topic that the copy/paste buffer can work with binary data inside Notepad++.

  • VCF File : strange characters in it

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    PeterJonesP

    @Ansophie ,

    Technically, the answer is in this FAQ.

    But to be helpful: since you said it was “genomic” data, I am assuming it’s a binary file type. Searching for “vcf genome file viewer” (doing the search with less text has some potentially NSFW hits) brought me to https://software.broadinstitute.org/software/igv/viewing_vcf_files … I don’t know if it’s free or not. There’s also a VCF Tools open-source app available on github. That’s a couple of possible links.

    But, in short, probably cannot do it in Notepad++, since it’s probably not a text format.

    Good luck.

  • Hidden Line Triangles Disappear

    14
    1 Votes
    14 Posts
    6k Views
    Alan KilbornA

    The hide/unhide lines feature of Notepad++ is problematic and best avoided IMO.

  • Chinese Characters saved with Notepad+ turn Unicode in another editor

    Locked
    8
    0 Votes
    8 Posts
    7k Views
    Meta ChuhM

    @Robert-Koernke

    i’m glad that disabling autodetect character encoding worked for your case, thanks for reporting back 👍

    @Robert-Koernke @PeterJones

    i think, vs2008 uses the default codepage of the current localization, unless “save as unicode …” is selected at the documents options.
    if it is selected, it will add a bom, but only to files that don’t match the current windows language codepage as i can recall.

    alt

    If it’s UTF-8-BOM in Visual Studio, then I see no reason why Notepad++ would be messing it up. If there’s a BOM, NPP will know it’s UTF-8, and it will save it again in UTF-8-BOM.

    it should, but i also had the problem once, that utf-8-bom was not correctly loaded if auto detect encoding was enabled. easy to spot, as the encoding bullet was somewhere nested inside the character sets menu instead of having the bullet at utf-8-bom.

    maybe we should verify some tests with bom, to check if it’s the same result if autodetect character encoding is activated.
    (i guess most regulars have currently disabled autodetect, until the uchardet 0.0.6 implementation is fixed, so we’d need to reenable it for some testing)

  • UDL highlight hex numbers

    Locked
    5
    1 Votes
    5 Posts
    2k Views
    Eko palypseE

    So what I was thinking about is to use the UDL as the main lexer while
    using this script to do additional colorings.
    To use this script you need to install PythonScript plugin, create a new script,
    paste content from below, safe it.

    Then modify it to your needs - see configure section for more details.
    Basically add/modify the regexes and more important modify the lexer name

    self.lexer_name = 'User Defined language file'

    Once done, save it and run it. It should, hopefully, go hand ind hand with your UDL
    I have added two regular expressions just to show you how it can be extended.
    From the problem given, I assume you only need the second one.

    from Npp import editor, notepad, NOTIFICATION, SCINTILLANOTIFICATION, INDICATORSTYLE import ctypes import ctypes.wintypes as wintypes from collections import OrderedDict try: EnhanceUDLLexer().main() except NameError: user32 = wintypes.WinDLL('user32') WM_USER = 1024 NPPMSG = WM_USER+1000 NPPM_GETLANGUAGEDESC = NPPMSG+84 class SingletonEnhanceUDLLexer(type): _instance = None def __call__(cls, *args, **kwargs): if cls._instance is None: cls._instance = super(SingletonEnhanceUDLLexer, cls).__call__(*args, **kwargs) return cls._instance class EnhanceUDLLexer(object): __metaclass__ = SingletonEnhanceUDLLexer @staticmethod def rgb(r,g,b): return (b << 16) + (g << 8) + r @staticmethod def paint_it(color, pos, length): editor.setIndicatorCurrent(0) editor.setIndicatorValue(color) editor.indicatorFillRange(pos, length) def style(self): start_line = editor.getFirstVisibleLine() end_line = start_line + editor.linesOnScreen() start_position = editor.positionFromLine(start_line) end_position = editor.getLineEndPosition(end_line) editor.setIndicatorCurrent(0) editor.indicatorClearRange(0, editor.getTextLength()) for color, regex in self.regexes.items(): editor.research(regex, lambda m: self.paint_it(color[1], m.span()[0], m.span()[1] - m.span()[0]), 0, start_position, end_position) def configure(self): SC_INDICVALUEBIT = 0x1000000 SC_INDICFLAG_VALUEFORE = 1 editor.indicSetFore(0, (181, 188, 201)) editor.indicSetStyle(0, INDICATORSTYLE.TEXTFORE) editor.indicSetFlags(0, SC_INDICFLAG_VALUEFORE) self.regexes = OrderedDict() # configuration area # self.regexes is a dictionary, basically a key=value list # the key is tuple starting with an increasing number and # the color which should be used, ored with SC_INDICVALUEBIT # the value is a raw bytestring which is the regex whose # matches get styled with the previously defined color # # using OrderedDict ensures that the regex will be # always executed in the same order. # This might matter if more than one regex is used. self.regexes[(0, self.rgb(79, 175, 239) | SC_INDICVALUEBIT)] = r'\b([A-F0-9]+[\s\?]*)+\b' self.regexes[(1, self.rgb(189, 102, 216) | SC_INDICVALUEBIT)] = r'\b([a-f0-9]+[\s\?]*)+\b' # defining the lexer_name ensures that # only this type of document get stlyed # should be the same name as displayed in first field of statusbar self.lexer_name = 'User Defined language file' def get_lexer_name(self): ''' returns the text which is shown in the first field of the statusbar ''' language = notepad.getLangType() length = user32.SendMessageW(self.npp_hwnd, NPPM_GETLANGUAGEDESC, language, None) buffer = ctypes.create_unicode_buffer(u' '*length) user32.SendMessageW(self.npp_hwnd, NPPM_GETLANGUAGEDESC, language, ctypes.byref(buffer)) # print buffer.value # uncomment if unsure how the lexername in configure should look like return buffer.value def __init__(self): editor.callbackSync(self.on_updateui, [SCINTILLANOTIFICATION.UPDATEUI]) notepad.callback(self.on_langchanged, [NOTIFICATION.LANGCHANGED]) notepad.callback(self.on_bufferactivated, [NOTIFICATION.BUFFERACTIVATED]) self.__is_lexer_doc = False self.lexer_name = None self.npp_hwnd = user32.FindWindowW(u'Notepad++', None) self.configure() def set_lexer_doc(self, bool_value): editor.setProperty(self.__class__.__name__, 1 if bool_value is True else -1) self.__is_lexer_doc = bool_value def on_bufferactivated(self, args): if (self.get_lexer_name() == self.lexer_name) and (editor.getPropertyInt(self.__class__.__name__) != -1): self.__is_lexer_doc = True else: self.__is_lexer_doc = False def on_updateui(self, args): if self.__is_lexer_doc: self.style() def on_langchanged(self, args): self.set_lexer_doc(True if self.get_lexer_name() == self.lexer_name else False) def main(self): self.set_lexer_doc(True) self.style() EnhanceUDLLexer().main()
  • Are 4 Multilpe Views (2 Horizontal , 2 Vertical) possible ?

    Locked
    3
    1 Votes
    3 Posts
    944 Views
    Alan KilbornA

    @Raul-Godoy

    Not sure what the end goal really is since you didn’t say, but perhaps two instances of Notepad++ running with both split into two views helps you? Disclaimer: I’m not a big fan of more than one instance. Of course, seems like you would need a lot of screen space for all that…

  • How to setup UDL keyword style overwrites?

    Locked
    7
    0 Votes
    7 Posts
    2k Views
    Hanna ShipwayH

    I’ve realised that some of the { } brackets aren’t coloured properly anymore, but only after instances of DATA or PARAMETER, and for some reason // comments after instances of PARAMETER don’t highlight either. Well, this is perplexing.

  • How to specify codepage when searching via Find in Files

    8
    1 Votes
    8 Posts
    2k Views
    Con SargoC

    Thanks for that tip too. I will try it.

  • Compare plugin not working in x64 version of NPP

    Locked
    5
    1 Votes
    5 Posts
    7k Views
    rinku singhR

    @Mathias-Dreßke said:

    OS version: Windows 7 Enterrpise SP2 x64
    NPP version: 7.6.2
    NPP location: “C:\Program Files\Notepad++\notepad++.exe”
    Plugin loction: “C:\Program Files\Notepad++\plugins”
    Plugin Version: 1.5.6
    Plugin resource: http://sourceforge.net/projects/npp-compare/

    The DLL and the doc-folder is placed in the plugins folder, as described in the documentation.

    Notepad++ does not show the plugin or any trace of it.

    you can download updated Compare plugin
    https://github.com/jsleroy/compare-plugin

  • How do I get the Plugin Manager in v7.6.2?

    Locked
    5
    0 Votes
    5 Posts
    3k Views
    PeterJonesP

    @Mathias-Dreßke said,

    Plugin Manager does not work in x64 version of NPP.

    That’s not really the issue. There is a 64bit (x64) version of Plugin Manager as well as the 32bit (x86), and in Notepad++ versions 7.5.9 and earlier, it worked just fine for 64-bit architectures.

    The issue is that starting with Notepad++ v7.6, the plugin hierarchy has been in a state of flux, as the NPP developer has been embedding his own Plugins Admin as a builtin alternative to the external Plugin Manager, and changing things as various issues come up. The Plugin Manager developer has not yet updated PM to be compatible with 7.6.x, because it’s too much of a moving target (and possibly because PM is likely no longer really needed for 7.6.x).

    Most of the plugins don’t either.

    There are a fair number of plugins that do have 64-bit versions. But yes, there are quite a lot that don’t, as well.

    @Luis-Piña-III ,

    … I just put in there PluginManager.dll and now have Plugins Admin.

    If you added PluginManager.dll to 7.6.2 in the plugins directory, then you have enabled the Plugin Manager. Plugins Admin is built into Notepad++, found under the Plugins > Plugins Admin… menu. If you try to use the Plugin Manager to install plugins in 7.6.2, they will not go to the right location, and Notepad++ will not notice that the plugins are there. You will want to use the Plugins Admin… to install your plugins in the correct location for v7.6.2.

  • 0 Votes
    2 Posts
    612 Views
    Meta ChuhM

    welcome to the notepad++ community, @mrunal-dhamal

    due to the way the plugins installation is implemented in notepad 7.6.2 (and 7.6.3) using plugins admin, you will have to disable uac and it’s security notification prompts, if you don’t want to see them.

    note: keep in mind, that uac is activated for security reasons, to make sure no application can write or change some vital file locations, without your consent.

    to disable uac in windows 10:
    hit the windows icon and type uac in the search field as seen at the screenshot below:

    alt

    then open up Change User Account Control settings and slide the slider down to the bottom as seen at the screenshot:

    alt

    then hit ok and reboot your machine.
    after reboot, you will now be able to install plugins without any uac prompt.

    (note: on windows 7 the uac slider is found by pressing the button “Change User Account Control settings” in your normal user accounts control panel)

    i hope this is of help to you.

  • Between html/css tags

    Locked
    3
    0 Votes
    3 Posts
    787 Views
    andrecool-68A
    Try enabling the option:
    Settings >> Preferences >> MISC >> Auto-indent Test the Tidy 2 plugin, it can format the finished code.
  • Plugin to add HTML toolbar (like in EditPlus)?

    Locked
    3
    1 Votes
    3 Posts
    3k Views
    Meta ChuhM

    welcome to the notepad++ community, @Bence-Kovács

    i’ve just found one plugin that might do what html toolbar does.
    it’s called webedit, it’s fully customisable, and has a customizable toolbar with customizable icons as well.

    but it only is available for notepad++ 32 bit as far as i can see.

    you can download it here:
    https://sourceforge.net/projects/npp-plugins/files/WebEdit/WebEdit 2.1/

    and here’s a screenshot of the menu and the toolbar:
    Imgur

    i’ve found this easy guide to get you started, if you want to try it out:
    http://devarticles.in/miscelleneous/how-to-add-html-tag-keyboard-and-toolbar-shortcuts-to-notepad-2/

  • Updates don`t work in 7.6.1 PlugIn-Admin

    14
    0 Votes
    14 Posts
    4k Views
    PeterJonesP

    @SkodaRunner ,

    it’s just a short-term situation. The long-term goal is for NPP to occasionally check for updates in the nppPluginList.dll and download a new copy if it needs to. But the developer wanted to get all the Plugin Admin decisions nailed down and bugs worked out before doing that feature. Hopefully, it will come in the near future. But @Meta-Chuh described the way it is for now.

  • 0 Votes
    6 Posts
    810 Views
    guy038G

    @zetawilk, @alan-kilborn and All,

    @zetawilk, in your initial post, you said :

    Task: You must replace (Foo,1234567890) without replacing any instance of (bar)

    You’re not asking, here, for any commercial demand. Personally, I would have written, preferably :

    Request : replace (Foo,1234567890) without replacing any instance of (bar)

    and thanked, in advance, possible repliers, for their [free] help !

    Just remember it, in your next posts ;-))

    Best regards,

    guy038

    P.S. :

    I just forgot your last post. So, let me temper my criticism because you did thank Alan for his answers !

  • I need a plugin that adds spaces

    Locked
    4
    0 Votes
    4 Posts
    781 Views
    guy038G

    Hello, @fortuneskills, @eko-palypse, and All,

    Presently, I’m not able to give you a full reply to your request but I should have more time on next Sunday ! I’ll also need some other samples of code, either before ( text you get ) and after ( Text you would like to ), to improve my regex S/R !

    Assuming your single example, here is my temporary solution :

    SEARCH (?-si)(?:\(.+?\)|@\d+?%|^\w{3,5}|[PSFM]\d+|[\w-]{2,3}\.?)(?=\R)|(^\w{3}|[PSFM]\d+|[\w-]{2,3}\.?)

    REPLACE $0(?1\x20)

    Option Wrap around ticked

    Option Regular expression selected

    Click on the Replace All button

    See you later,

    Best Regards

    guy038