• Theme resets after switching to administrator mode

    Locked
    7
    1 Votes
    7 Posts
    4k Views
    Henry BurrowsH

    Sorry, didn’t see your reply in time; however, a re-install and reboot has resolved the issue.

    Thanks again!

  • Feature Request: Could notepad++ just keep the selection part

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    Claudia FrankC

    ignore my comment - overlooked that this is a feature request.

    Probably a better place to ask for this enhencement is at github.

    Cheers
    Claudia

  • useless macro?

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    PeterJonesP

    @Angelica-Bartoloni isn’t overly clear (but maybe English isn’t her native language), but I read the description of the ImgTag plugin in the Plugin Manager: it appears to allow you to use a File|Open-style dialog to select images from your drive, and then insert the appropriate <IMG> tag in the HTML document you are editing in Notepad++.

    Given that description, then it could probably be automated inside NPP… but probably not with the macro-recording tool.

    The ways that I can think of:

    Use the ImgTag plugin as normal. Then use a regex-based search-and-replace to update the title and alt fields. If the OP gave us the example output HTML from ImgTag, the regex experts could easily customize to fit the OP needs.

    Use PythonScript to automate the ImgTag plugin, and edit the output as it’s going. (I don’t think this really has any benefit over #1)

    Use PythonScript to completely replace the ImgTag functionality: have the .py call a File|Open-style dialog itself, and then generate the HTML <img> tags, with all the fields that are desired. (For simplest case, this might work; but if OP is relying on getting/setting the width and height tags via ImgTag as well, then it would probably require accessing other libraries through the .py, at which point, #1 is probably simpler again.)

    I think probably #1 is the easiest.

    Assuming ImgTag would return the following if you selected a.png, b.png, and c.png: (and assuming that “alt field is blank” means there is the alt attribute but no string inserted, and that “no title field” means that there isn’t a title attribute at all):

    <img src="./a.png" width=640 height=480 alt=""> <img src="./b.png" width=1280 height=720 alt=""> <img src="./c.png" width=1920 height=1080 alt="">

    And assuming @Angelica-Bartoloni wants

    <img src="./a.png" width=640 height=480 alt="./a.png" title="./a.png"> <img src="./b.png" width=1280 height=720 alt="./b.png" title="./b.png"> <img src="./c.png" width=1920 height=1080 alt="./c.png" title="./c.png">

    Then I would use something like

    Find What = (?-s)src="([^"]*)"([^>]*)alt=""> Replace With = src="$1"$2alt="$1" title="$1">

    If the order of attributes is different, or ImgTag uses different quote characters (single quotes, for example), or if it uses xhtml-style <img ... />, then the regular expressions could be changed to accommodate.

    Angelica, please give us actual example output from ImgTag, and the exact desired final result: we can tweak the regex as necessary. Try to think of edge cases: do any of your filenames have quotes or apostrophes embedded, such as Mr. D'Angelo's "favorite" picture.png, or any other special characters that you think might influence things? Does ImgTag always output attributes in the same order? Does it include the alt="", or alt='', or no alt at all; similar for title? What other helpful information can you give us? (The more details you give of “what you have” vs “what you want”, the easier it is for us to help you find a solution.)

    <edit>: also, we need to know if you have other <IMG> tags already in the document. If so, then before doing the search-and-replace, you’ll have to select just the ImgTag-based <IMG> tags, and use the ☑ In Selection option, to avoid messing up other images.</edit>

  • Multi lines selection in longer file

    Locked
    2
    0 Votes
    2 Posts
    992 Views
    Scott SumnerS

    @Pavol-Pusztai

    Use the Begin/End Select feature (see Edit menu).

    Here’s how:

    Go to your first line of interest (possibly using Search (menu) -> Go to…) Invoke Begin/End Select. Go to your second line of interest (possibly using Search (menu) -> Go to…) Invoke Begin/End Select again.

    Your desired range should now be selected/highlighted.

  • Feature Request: filter files in "Folder as Workspace" by path

    Locked
    2
    1 Votes
    2 Posts
    2k Views
    Jim DaileyJ

    @HonoredMule

    I think the Open File In Solution, Solution Hub, and Solution Hub UI plugins may do what you want in a somewhat different way. With them you can type parts of filenames and, if you want, pathnames and it displays the matching ones and allows you to select one to open in the editor.

    Check it out at http://npp.incrediblejunior.com/

  • Issues running versions after v 7.5.1 on Wine

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    Claudia FrankC

    @Danie-de-Jager

    just updated to the latest stable verison 3.0 and can use npp 7.5.4

    Cheers
    Claudia

  • [Suggestion] Reload opened files when restarting for update

    3
    2 Votes
    3 Posts
    1k Views
    Eagle3386E

    @donho, is this possible? :)

  • Remove duplicate lines from unsorted, keeping first

    10
    0 Votes
    10 Posts
    9k Views
    guy038G

    Hello, @sepehr-e,

    I must admit that sometimes regexes, involving great amount of text, may, wrongly, get an unique match, which represents all the file contents :-(( This case may also happen, in case of regexes with recursive patterns, inside !

    I can’t clearly explain this behaviour. May be, it’s related to a matched range of characters, that exceeds a limit. It could also depends on the RAM amount or because of specific N+++ features, like the periodic backup !

    Practically, you could use the regex, below, which implies an other condition : the \1+ block of lines, which is to be deleted, must, follow, most of the time, some End of line characters !

    (?-s)^(.+\R)(?s).*?\R?\K\1+

    Despite you didn’t say anything about your working file, but it could help ?!

    Note that the syntax \R must be optional ( => the form \R? ) in case of a block of consecutives identical lines, as for instance :

    456 789 123 123 123 123 000

    Best Regards,

    guy038

  • How to run python code once written?

    Locked
    2
    0 Votes
    2 Posts
    4k Views
    Claudia FrankC

    @David-Hodge

    I can’t say what your python code should do as there is no info what has been coded but
    concerning the execution of code from within python there are several ways to achieve this.

    use the run menu and run function (typically keyboard shortcut F5)
    within this dialog you would do something like

    cmd /K python $(FULL_CURRENT_PATH)

    the variable FULL_CURRENT_PATH gets substituted by notepad++ with the full path
    of the current opened document. So it is a must that the script has been already saved
    before you run it.

    Install the excellent NppExec plugin. It does basically the same as the build in run function
    but offers a lot more in addition. Like you can define that not only the script should run but
    also some other action should take place. If using the NppExec plugin you do not need
    the cmd shell from the previous example as it has its own “shell” so a call

    python $(FULL_CURRENT_PATH)

    is sufficient.

    3)Install python script plugin. As it is not its native functionality you can use it to run
    scripts as well. Its main purpose is to interact with notepad++, meaning you can
    automatically insert text into your document or reformat it automatically etc…

    Cheers
    Claudia

  • File write failures causes loss of data.

    Locked
    2
    0 Votes
    2 Posts
    919 Views
    chcgC

    Which version of N++ are you using? Could you please provide the debug info. Do you have one of the backup methods active (Settings->Options->Backup)?

  • No Plugin Manager in menu dropdown.

    Locked
    3
  • Ability to change the color of individual tabs that are open

    3
    0 Votes
    3 Posts
    5k Views
    Scott SumnerS

    @Gogo-Neatza

    There are four groups of settings related to tabs

    These 4 groups seem to be:

    Active tab focused Active tab unfocused Active tab text Inactive tabs

    My experimentation with this uncovered that only “Foreground colour” had an effect, and only for 3 of the 4 (Active tab unfocused was unaffected). If anyone has a different experience, I’d be interested to hear it.

  • File Associations not sticking

    6
    0 Votes
    6 Posts
    2k Views
    Claudia FrankC

    @johnwargo

    which basically confirms what is discussed - your account doesn’t have
    sufficient rights to manipulate the needed registry keys.
    Why this account has been removed the permission to modify the needed keys I cannot
    say but one solution to solve this issue is to add your account to keys.
    In the past, Microsoft provided tools to fix registry permission issues, maybe this is also
    available for your os version.

    Cheers
    Claudia

  • Misleading ads on download page above download links

    Locked
    5
    0 Votes
    5 Posts
    3k Views
    Scott SumnerS

    @PeterJones

    Maybe the current Plugin Manager needs an integrated ad-blocker as well. :-D
    Then we could have it back.
    And…the…questions…about…where…it…has…gone…would…STOP!

  • [BUG!!!] Code tray #4087

    Locked
    2
  • Notepad++ can't enter data

    Locked
    2
    0 Votes
    2 Posts
    992 Views
    Bernard ScalaB

    Panic over, I downloaded the wrong version of Notepad++. Uninstalled the old version and installed the correct version and all works ok.

  • I'm beginner how to add function list for COBOL

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    scialoS

    thanks very much

  • Multiple directories in Find in Files

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Jim DaileyJ

    @Rowan-Sylvester-Bradley You might want to locate a program called GrepWrap. It allows you to do what you want and more.

  • 0 Votes
    5 Posts
    3k Views
    guy038G

    Hi @lanselibai,

    Sure that regexes can sort out all the cases where a 5 digit must be replaced by a 9 digit !!

    So, given the 10 numbers, below, containing one or several 5 digits :

    52.8 3.457 505 10.5 5 0.345 23558 56789.5512557 5555.5555 0.000000005

    Which are the final expected form of each number ? Of course, I suppose that, in real files, these 10 numbers may lie in a single or on several lines

    From the results, It should be easy enough to build up the appropriate regex !

    Best Regards

    guy038

  • Function list causes lag since last update

    5
    0 Votes
    5 Posts
    3k Views
    Benjamin OdegaardB

    Oh and I guess I should say that I’m coding in c with file sizes that range from 500 lines to 5000 lines.