• template literals JS shrink & expand

    Locked
    1
    0 Votes
    1 Posts
    744 Views
    No one has replied
  • How to enable auto-complete for Fortran

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Sam EllisS

    Thanks Guy. Now working. But did not appear to work on a Fortran file that was already open but worked when I closed the file and reopened it!?

  • -2 Votes
    1 Posts
    883 Views
    No one has replied
  • Np++ hangs trying to show file open dialog

    Locked
    1
    0 Votes
    1 Posts
    690 Views
    No one has replied
  • How to make line index start with 0 ?

    Locked
    2
    0 Votes
    2 Posts
    6k Views
    Mikhail VM

    there was same question not long ago,
    I think it is not possible to set up in GUI but there is a workaround using
    margin and filling it with numbers.

    https://notepad-plus-plus.org/community/topic/14954/starting-the-line-number-with-0

  • Reg expression to change characters within brackets '[ ]' to uppercase?

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    guy038G

    Hi, @kurt-ehrhardt, @Peterjones and All

    Ah, already solved, nice :-)) So, just for fun, an other formulation could be :

    SEARCH \[.*?\]

    REPLACE \U$0

    Note, Kurt, that the two search regexes, from Peter and me, would match a “multi-lines” square-bracket block, too, as, for instance :

    array[ENUM1 _NAME]

    Thus, to restrict to a single-line square-bracket block, the Peter’s search regex should be changed into :

    SEARCH \[([^]\r\n]*)\]

    And mine should be written :

    SEARCH (?-s)\[.*?\]

    Cheers,

    guy038

    P.S. :

    Note that replacement case operations occur, only, with classical letters in range [A-Za-z] Unfortunately, for Non English-American people, this does not work, at all, for accentuated letters :-((

  • Help - Multiple replacement - Vertical text

    Locked
    7
    0 Votes
    7 Posts
    3k Views
    guy038G

    Hello, @luis-eduardo-martinez-ruiz, and All,

    Indeed, Scott gave you the right link to the related discussion to your problem ! But, as this discussion contains many posts and as you could be a bit “lost”, I think that I’m able to build a suitable regex for your needs :-))

    You said, in your first post :

    I want to replace those names for numeric codes

    And you gave an example, with 4 forenames ( I just copied real text ! ) :

    <MANUFACTURER_PID>Luis</MANUFACTURER_PID> .... <MANUFACTURER_PID>Rosa</MANUFACTURER_PID> ... <MANUFACTURER_PID>Ernesto</MANUFACTURER_PID> ... <MANUFACTURER_PID>Matias</MANUFACTURER_PID>

    which have to be replaced by the 4 numeric codes ( Again, I just copied real text, not the regex ! ) :

    <MANUFACTURER_PID>07498358092</MANUFACTURER_PID> ... <MANUFACTURER_PID>07498311593</MANUFACTURER_PID> ... <MANUFACTURER_PID>07498319913</MANUFACTURER_PID> ... <MANUFACTURER_PID>07498351833</MANUFACTURER_PID>

    So I suppose that you have a specific file which links up these forenames to the numeric codes, and vice-versa. I mean, a file like that :

    Luis : 07498358092 Rosa : 07498311593 Ernesto : 07498319913 Matias : 07498351833

    or, may be, like that :

    07498358092 = Luis 07498311593 = Rosa 07498319913 = Ernesto 07498351833 = Matias

    Just tell me the structure of this specific file ( that I call the links file ), and we’ll be able to get the right regex S/R, which allows the change of any number of names, possibly repeated, with their respective numeric codes ( even 52000 items ! ) in one step, only :-))

    Remarks :

    ONE condition is mandatory : In this links file, all the names and numeric codes must be UNIQUE !

    The order of names, in the initial text, can be completely different than the order they occur, in the links file. No problem !

    And, as I said above, some names may be repeated, in the text to be changed. No problem, too !

    See you later,

    Best Regards,

    guy038

  • Regex: How can I find characters like this: â|ă|ã ?ASCII/UTF-8

    Locked
    1
    -1 Votes
    1 Posts
    1k Views
    No one has replied
  • Duplicate Files

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    PeterJonesP

    File menu, Save As..., navigate to the new folder you want the file in. Don’t even need to copy/paste. This will mean the file open in Notepad++ is now the copy in the new folder.

    Or, if you want to keep the file open in the original location, but save a copy to a new location (without opening the copy), then File menu, 'Save a copy as…`.

  • Please help - notepad++ plugins

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    chcgC

    See https://github.com/bruderstein/nppPluginManager and try to add some additional information about the used versions of PM, N++, windows

  • How to show the console window?

    12
    1 Votes
    12 Posts
    78k Views
    PeterJonesP

    (I tried to edit my post, but it took me too long. So pretend this is appended to the end of my post.)

    For example, I use

    npp_save cd "$(CURRENT_DIRECTORY)" g++ "$(FILE_NAME)" -o "$(NAME_PART)" npp_run cmd.exe /k "$(NAME_PART)"

    to save, compile, and run a simple c++ program. All outputs end up in the NppExec’s console window.

    We weren’t trying to evade the original question a year ago. We were trying to clarify, to make sure we gave the best possible answer for the OP’s situation. I chose to do it by giving a bunch of information, and hoping it would be enough to answer the OP’s question… and if not, to give the OP more knowledge, to make it easier to clarify the actual needs.

    If your post had been the OP, I would have skipped the mention of the PythonScript plugin (also – I should have been more clear; the PythonScript plugin uses a python interpreter to manipulate the Notepad++ GUI and scintilla editor components that NPP uses internally for doing the text editing; for running arbitrary Python code, I would use the NppExec plugin as well). Given your description, NppExec’s console window is the one that made the most sense – though the two methods of bringing up a separate cmd.exe, starting from within Notepad++, would also probably do what you want, though not as well integrated into Notepad++.

  • Font sizes in printing

    Locked
    5
    0 Votes
    5 Posts
    3k Views
    Charles W BillowC

    Ah. Thanks.

  • Right-click, "edit with notepad++" error

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    PeterJonesP

    Strange. That command looks reasonable (other than trying to open a PDF, which is a binary format, not a text file, with a text editor). My open with Notepad++ command is a REG_SZ with C:\Program Files (x86)\Notepad++\notepad++.exe "%1", which looks like what yours probably is, too.

    Doing some googling for “shell execute failed (2) Is this command correct” (ie, the text of your error message) leads to a post in this forum, which indicates notepad++.exe executable has been set to run as administrator, which might be causing the issue, and claims that not running as admin will fix it.

    If you really want it to run as administrator, this superuser.com answer gives a procedure that claims to be able to associate it and still run as admin. In short, delete the old key, and create a new one. One implication (thought it wasn’t explicitly said): the key they deleted possibly had the ++ in its key-name (Edit with Notepad++), whereas the new key-name did not (OpenWithNotepad is what they suggested; for clarity, I would use OpenWithNotepadPP). Then again, it might just be where they put their association.

    Note: after making the changes to the registry, you might need to log out and back in to get the changes to take place.

    btw: to embed the image, you would use ![](http://www.drteeth.co.uk/notepad%2B%2B/edit-with.png), which results in . The little ? in a circle in the upper-right of the forum’s COMPOSE window takes you to a link that explains this.

  • Print Setup

    Locked
    1
    0 Votes
    1 Posts
    757 Views
    No one has replied
  • I want to edit file's name's just like the search and replace option

    2
    0 Votes
    2 Posts
    836 Views
    Ds ArjunD

    There is no option in npp to edit file names but there is a direct option in windows CMD:
    ren filename.old filename_new

  • Analyse plugin to search string in multiple files

    7
    0 Votes
    7 Posts
    5k Views
    Ds ArjunD

    @mattesh do you have any update on this?

  • Notepad++ syntax highlighting for gnuplot

    Locked
    5
    0 Votes
    5 Posts
    5k Views
    chcgC

    @Luciano-Ribeiro Which link do you think is broken? Link is to the xml file and that is working for me:

    <NotepadPlus> <UserLang name="Gnuplot" ext=".plt"> <Settings> <Global caseIgnored="no"/> <TreatAsSymbol comment="no" commentLine="yes"/> <Prefix words1="no" words2="no" words3="no" words4="no"/> </Settings> <KeywordLists> <Keywords name="Delimiters">000000</Keywords> <Keywords name="Folder+"/> <Keywords name="Folder-"/> <Keywords name="Operators">" ( ) * [ ] +</Keywords> <Keywords name="Comment">1 2 0#</Keywords> <Keywords name="Words1">set cd call clear exit fit help history if load lower pause plot print pwd quit raise replot reread reset save set-show shell splot system test unset update</Keywords> <Keywords name="Words2">lt lw angles arrow autoscale bars bmargin border boxwidth clabel clip cntrparam color box contour data style datafile decimalsign dgrid3d dummy encoding fit fontpath format function style functions grid hidden3d historysize isosamples key label lmargin loadpath locale logscale macros mapping margin mouse multiplot mx2tics mxtics my2tics mytics mztics offsets origin output parametric plot pm3d palette pointsize polar print object rmargin rrange samples size style surface table terminal termoption tics ticslevel ticscale timestamp timefmt title tmargin trange urange variables version view vrange x2data x2dtics x2label x2mtics x2range x2tics x2zeroaxis xdata xdtics xlabel xmtics xrange xtics xyplane xzeroaxis y2data y2dtics y2label y2mtics y2range y2tics y2zeroaxis ydata ydtics ylabel ymtics yrange ytics yzeroaxis zdata zdtics zzeroaxis cbdata cbdtics zero zeroaxis zlabel zmtics zrange ztics cblabel cbmtics cbrange cbtics</Keywords> <Keywords name="Words3">abs acos acosh arg asin asinh atan atan2 atanh besj0 besj1 besy0 besy1 ceil cos cosh erf erfc exp floor gamma ibeta inverf igamma imag invnorm int lambertw lgamma log log10 norm rand real sgn sin sinh sqrt tan tanh gprintf sprintf strlen strstrt substr system word words column defined exists stringcolumn timecolumn tm_hour tm_mday tm_min tm_mon tm_sec tm_wday tm_yday tm_year valid</Keywords> <Keywords name="Words4">iso_8859_1 windows</Keywords> </KeywordLists> <Styles> <WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0"/> <WordsStyle name="FOLDEROPEN" styleID="12" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0"/> <WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0"/> <WordsStyle name="KEYWORD1" styleID="5" fgColor="0080FF" bgColor="FFFFFF" fontName="" fontStyle="0"/> <WordsStyle name="KEYWORD2" styleID="6" fgColor="FF8000" bgColor="FFFFFF" fontName="" fontStyle="0"/> <WordsStyle name="KEYWORD3" styleID="7" fgColor="FF00FF" bgColor="FFFFFF" fontName="" fontStyle="0"/> <WordsStyle name="KEYWORD4" styleID="8" fgColor="800040" bgColor="FFFFFF" fontName="" fontStyle="0"/> <WordsStyle name="COMMENT" styleID="1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0"/> <WordsStyle name="COMMENT LINE" styleID="2" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="2"/> <WordsStyle name="NUMBER" styleID="4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0"/> <WordsStyle name="OPERATOR" styleID="10" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0"/> <WordsStyle name="DELIMINER1" styleID="14" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0"/> <WordsStyle name="DELIMINER2" styleID="15" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0"/> <WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0"/> </Styles> </UserLang> </NotepadPlus>
  • Not Found Encode utf-8 without BOM ....... WHY?!

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    Abd Elrazek NagehA

    I mean word “Encode in UTF-8 without BOM” , it’s not found in this version … Generally thanks for you >>> scott Summer .

  • Nppexec can not install from sourceforge

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Angus HoA

    Hi, @guy038 ,
    Thanks for the response :)
    I tried the sourceforge download page.
    Amazingly, it works.
    Still thanks a lot for your answer.

    Regards,
    angus

  • spell checker on French comments

    Locked
    4
    0 Votes
    4 Posts
    1k Views
    Robert CordonnierR

    Thank you very much, Scott and chcg for your excellent proposals. Finally, I choose unchecking “Spell Check Document Automatically” element in “Compléments” (probably corresponding to Plugins). The “Change Current Language/Multiple Languages” option works too but I prefer the first because spell checking has little interest on instructions comments where diverse abbreviations are frequently used.