• Code folding without closing bracket

    code close bracket
    2
    0 Votes
    2 Posts
    4k Views
    Nima Mir HabibollahiN
    you can save your file as a python source file (simply by changing the extention to .py) then you can handle your folding by **indenting **lines using **tab character **
  • Wierd issue with notepad++

    5
    0 Votes
    5 Posts
    4k Views
    guy038G
    Hi, Claudia, Concerning your last question, it’s just because I directly modified a N++ configuration file ( config.xml ). But, you’re right ! I could just have used the Edit - Control Panel ( or the method : ALT + 0nn on numeric keypad ) to write these Control characters, first, in the normal text window and, secondly, use CTRL + C/V to copy them into the Settings - Preferences… - Delimiter section :-) Best Regards, guy038
  • Undo a change made in the source-files between v6.5.4 and v6.7

    17
    0 Votes
    17 Posts
    9k Views
    YaronY
    Hello Claudia, Great. Many thanks again. I do appreciate it. Best regards.
  • Compiling NP++ - Error compiling scintilla

    vs 2013 scintilla buildboost.bat compile
    3
    0 Votes
    3 Posts
    3k Views
    NyrotagorN
    Oh, I didn’t try compiling within the developer command prompt. Now it works. On to the next step. Hope the rest goes to plan :) Thank you for the help on this matter.
  • Notepad++ font is permanently bolded after new GPU drivers

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    PhonicStudiosP
    Hello Claudia, I appear to have only one font: DejaVu Sans Mono Bold. I guess this explains why the italic/bold options had no changing effect. I’m completely lost as to how these fonts can suddenly dissapear from my computer after a simple GPU driver reinstall. Anyway, I’ll reinstall the DejaVu fonts and I’ll post/edit if it works. Kind regards, Sanchez
  • Plug nppCrypt not start

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC
    Hello @nivez.no1, which npp version do you use? Is the plugin compatible to your npp version? (ansi vs. unicode) Do you get any error message indicating a problem with plugins when starting npp? Can you post, if available, the debug-info? (Can be found under ? menu) Cheers Claudia
  • Jump List not working

    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC
    Hello @Gagan-Pal-Singh-Ahluwalia, what do you mean by jump list? Maybe a screenshot might clarify it. Cheers Claudia
  • Help with Bookmarks, please

    Locked
    4
    0 Votes
    4 Posts
    13k Views
    guy038G
    Hi Doug Farm, First of all, congratulations ! Indeed, very few people use as many N++ plugins as you do ( 61 ) ! However, be aware that some problems may occur when such a lot of plugins are simultaneously opened in a N++ session. As for me, on an old 6.4.5 N++ locale version, some time ago, it was the case, with 70 plugins installed, just for tests ! But, let’s back to your problem ! I think that your troubles come from the NppPlugin_ChangeMarker.dll plugin. Just remove it or check the Disable Plugin option of this plugin and everything should be OK :-) You may, either, remove its two associated plugins NppPlugin_PluginMargin.dll and NppPlugin_SciMarkerSymbol.dll Cheers, guy038
  • Fin/Replace in Determined Lines

    5
    0 Votes
    5 Posts
    4k Views
    guy038G
    Fabrizio and All, From your post, I tried to find a generic way to achieve this kind of question, with regexes ! Please, just consider my solution as, only, one, among all the possible solutions ! The Fabrizio’s goal is to perform a Search/Replacement on a line, ONLY IF a SPECIFIC condition is true on that particular line I would use the general regex syntax, below : (Regex_Condition)[^@\r\n]*$|(Search_Regex)(?=.*@)|@ (?1$0@)(?2Replacement_Regex) IMPORTANT : Go back to the very beginning of your current file In the Replace dialog, check the Regular search mode Check, preferably, the Match case option Click TWICE on the Replace All button NOTES : The arobase character @, is, simply, any single character, which DOES NOT exist in your current file. and preferably, NOT a meta-character of regular expressions. So, according to your file’s contents, you can choose, for instance, the ! character, the # character, the % character, the & character, the = character, the _ character, … Regex_Condition represents the regex that satisfies the specific condition, which allows the associated Search/Replacement. Of course, Regex_Condition may be, also, a simple literal string, even a single character ! Search_Regex represents, of course, the area of text, which will be replaced. As above, Search_Regex may be, only, a simple literal string, even a single character ! Replacement_Regex is, obviously, the regex to generate the text that will replace the area matched by the Search_Regex Below, I’ll expose 3 different examples ( The Fabrizio’s one and two others ) Regex_Condition : ^Value= Search_Regex : \bbla\b Replacement_Regex : blue Regex_Condition : \b\d\d-\d\d-\d\d\b Search_Regex : [a-z] Replacement_Regex : \u\2 Regex_Condition : \d$ Search_Regex : [[:alpha:]]+ Replacement_Regex : <\2> In the first case, we’ll replace the lowercase word bla, with the word blue, ONLY on lines beginning with the exact string Value= ( Fabrizio’s problem ) In the second case, we’ll replace any lowercase letter, with the same uppercase letter, ONLY on lines that contain a date, of the general form xx-xx-xx, at any position of the line In the third case, we’ll replace any set of uppercase or lowercase letters, with the same set, surrounded by the two angle brackets, ONLY, if the current line ends with a digit To see the results of each example, I’ll use the SAME 10 lines test example, below : Value= bla bla testblatest bla That's only "bla bla" speech My NEXT bithday falls on 19-05-16 Every 25-12, Chistmas is celebrated Value= Test of bla and BLA Christmas is celebrated each 25-12 On the 01-01-17, we'll wish a Good New Year Don't change the word "bla", in that TEST line no 8 01-01-00 was the first day OF THAT century Value= bla blabla bla So the first example : (^Value=)[^@\r\n]*$|(\bbla\b)(?=.*@)|@ (?1$0@)(?2blue) would give the changed text ( Lines 1, 5 and 10 ), below : Value= blue blue testblatest blue That's only "bla bla" speech My NEXT bithday falls on 19-05-16 Every 25-12, Chistmas is celebrated Value= Test of blue and BLA Christmas is celebrated each 25-12 On the 01-01-17, we'll wish a Good New Year Don't change the word "bla", in that TEST line no 8 01-01-00 was the first day OF THAT century Value= blue blabla blue The second example : (\b\d\d-\d\d-\d\d\b)[^@\r\n]*$|([a-z])(?=.*@)|@ (?1$0@)(?2\u\2) would give the changed text ( Lines 3, 7 and 9 ), below : Value= bla bla testblatest bla That's only "bla bla" speech MY NEXT BITHDAY FALLS ON 19-05-16 Every 25-12, Chistmas is celebrated Value= Test of bla and BLA Christmas is celebrated each 25-12 ON THE 01-01-17, WE'LL WISH A GOOD NEW YEAR Don't change the word "bla", in that TEST line no 8 01-01-00 WAS THE FIRST DAY OF THAT CENTURY Value= bla blabla bla Finally, the third example : (\d$)[^@\r\n]*$|([[:alpha:]]+)(?=.*@)|@ (?1$0@)(?2<\2>) would give the changed text ( Lines 3, 6 and 8 ), below : Value= bla bla testblatest bla That's only "bla bla" speech <My> <NEXT> <bithday> <falls> <on> 19-05-16 Every 25-12, Chistmas is celebrated Value= Test of bla and BLA <Christmas> <is> <celebrated> <each> 25-12 On the 01-01-17, we'll wish a Good New Year <Don>'<t> <change> <the> <word> "<bla>", <in> <that> <TEST> <line> <no> 8 01-01-00 was the first day OF THAT century Value= bla blabla bla NOTES : Throughout these 3 examples, the lines 2 and 4, which do not begin with the string Value= nor end with a digit and which do not contain any date, remain UNCHANGED For a correct behaviour of the proposed regexes, don’t forget to click, TWICE, on the Replace All button Best Regards, guy038 P.S. : The underlined idea, about these general regexes, below : (Regex_Condition)[^@\r\n]*$|(Search_Regex)(?=.*@)|@ (?1$0@)(?2Replacement_Regex) is : Add a specific character ( @, or else, not used in current file ) at the end of EACH line that satisfies the Regex_Condition ( 1st S/R ) Perform the wanted S/R, ONLY on the lines that end with the @ character ( or else ) and finally delete that extra character, at the end of each concerned line ( 2nd S/R ) As usual, I could give some extra information about these regexes, if needed !
  • How to highlight single line without caret going to next line

    11
    0 Votes
    11 Posts
    10k Views
    guy038G
    Hi, Darkemis, Scott and Claudia, Thanks Claudia and Scott to make us remember about the difference between the two shortcuts Shift + Down arrow and Shift + End ! A very little thing that may, sometimes, speed up our N++ work :-) So, when cursor is at the very beginning of a line ( column 1 ) : Shift + Down arrow selects all the contents of this line, WITH its End of Line character(s) Shift + End selects all the contents of this line, WITHOUT its End of Line character(s) Cheers, guy038
  • Problem with PHP7 MySQL syntax highlight

    Locked php7 highlighting syntax mysql
    4
    0 Votes
    4 Posts
    4k Views
    Koppány AttilaK
    Hi Claudia, that’s just what I need! Thanks for your help, now it’s done and perfect! Have a nice day / evening! Attila
  • want change font-size 13 input font size not available

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Need to extract csv from text file

    8
    0 Votes
    8 Posts
    8k Views
    Claudia FrankC
    Hi Ray, when posting formatted code/text you need to indent by at least 4 spaces, then it will keep its layout. The regular expression is explained, for searching here and for replacing here What it does is the following: (high level - detailed infos on the mentioned website) ( ) = this is a caturing group \R = newline chars {6} = should be repeated exactly 6 times (.*?\R){6}) = basically means match 6 lines (.*,.*\R) = match lines which have or not chars followed by a comma and again have chars or not followed by newline (now I’m thinking .+,.+\R would be better because this means lines having atleast one char followed by comma and again at least one char followed by newline) (.*,.*\R)* = the added * means it could be any number of lines or no line at all " at the end basically means, last line needs to be the double quote In replace, as we only use what was matched in \3, anything else get deleted. As said, the links provide better and detailed explanation. Cheers Claudia
  • regex s/r for defined pattern while keeping some of the existing text

    6
    0 Votes
    6 Posts
    4k Views
    Claudia FrankC
    Hello Peter, I’m not sure if the site you mentioned reflects the current state. I would advise to read this for searching and that for replacing. Cheers Claudia
  • Go back to previous version of file.

    5
    0 Votes
    5 Posts
    7k Views
    Pedro CarvalhoP
    Hello @Claudia-Frank, I won’t be able to take it to a recovery company just because of a phone number. Without any program reference, as you don’t know one i’l just live with it and setup windows backup to have previous versions so i have a workaround might this happen again.
  • discusive analysis editing

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Why does NP++ reformat my php code?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    dailD
    Notepad++ does not mess with any code like that. Either you: Have a plugin that is somehow modifying the code Are accidentally hitting a shortcut key (e.g. Ctrl+J to join all the lines) Or something outside of Notepad++ is modifying it (for example mixing up line endings)
  • Bug on php script with comments

    comments
    4
    0 Votes
    4 Posts
    4k Views
    Claudia FrankC
    Of course I know it’s a editor. I save to server and run in a browser, just like most people do that write scripts. Well don’t know how I should understand this … Could it be that you use different os systems in regards to where npp runs and on which os your webserver is? If so, did you check file integrity? Cheers Claudia Btw. as much information we get as more useful the answers would be - well, that’s waht I assume.
  • Setting up Notepad++ to run PHP under WAMP

    Locked
    2
    0 Votes
    2 Posts
    11k Views
    Claudia FrankC
    Hello @Fergus-Flanagan, you can use the run menu or a plugin named nppExec (which I prefer as it has better options) and call the browser of your choice like so INSTALLATION_PATH\YOUR_BROWSER.exe http://localhost…/$(FILE_NAME) where $(FILE_NAME) is the current file open. You need to provide this variable, don’t replace it. … of course is the path you configured. Cheers Claudia
  • NPP_INSTALLED_DIR - What is it?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC
    Hello @Stevorno, where does this NPP_INSTALLED_DIR come from? Where does it appear? Can you give it a try to use one of the zipped npps from https://notepad-plus-plus.org/download/v6.9.html ? Just unpack it to a place where you have write access, nothing to configure. Start npp and plugin manager. Cheers Claudia