• UTF-8 doc becomes ANSI doc !

    Locked
    24
    0 Votes
    24 Posts
    30k Views
    Claudia FrankC
    @gerdb42 I agree that this would break the principle but on the other hand it could be beneficial as well. But, now as I’m typing I’m thinking, when this conversion takes place and you don’t know from which encoding it came from you might corrupt the document without knowing how to fix it. Yes - bad idea. Cheers Claudia
  • Find & replace with increment across multiple files

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    J
    Here is an AWK script that may help you. You can download GNU AWK from here: https://sourceforge.net/projects/ezwinports/files/gawk-4.1.3-w32-bin.zip/download # ************************************************************************** # AWK script to replace all occurences of FindStr with RepStrNNN. # Output files are the same name as the input files with ".ed" appended. # # Run it like this: gawk -f .\thisScript.awk <files to be edited> # # If this file is saved as repAll.awk in the current directory, and the # files to be edited are in directory c:\fileDir, then: # # gawk -f .\repAll.awk c:\fileDir\* # # ************************************************************************** BEGIN { # If FindStr contains any characters that have special regex meaning, # they must be prefaced with "\". For example: "Needed\* Here". FindStr = "replaceMe" RepStr = "ID" NumDigits = 3 # Number of digits to append to RepStr. # Controls leading zeroes, but does not # limit the total number (i.e. if there # are 10000+ replaces, then ID10134, for # example, will be generated). Number = 0 # Initial number to append. BatchFile = ".\\CopyAndDel.bat" # Name of batch file used to clean up. } FNR == 1 { print("@copy " FILENAME ".ed " FILENAME " /y >nul") > BatchFile print("@del " FILENAME ".ed >nul") > BatchFile } { while (match($0, FindStr)) { sub(FindStr, sprintf("%s%0*d", RepStr, NumDigits, Number++)) } print > (FILENAME ".ed") } END { print "If the '.ed' files look good, execute " BatchFile " to copy them over" print "the original files and then delete them." }
  • Function List for new language...

    Locked
    11
    0 Votes
    11 Posts
    13k Views
    MAPJe71M
    You’re welcome!
  • Changing keyboard shortcuts

    Locked
    6
    0 Votes
    6 Posts
    10k Views
    John SparkJ
    how this settings works in anyone other’s NP++ instance ? ty
  • [functionList.xml] What do these colons mean?

    Locked
    6
    0 Votes
    6 Posts
    4k Views
    MAPJe71M
    I’m actually in the process of creating the first update/overhaul for functionList.xml. Unfortunately it will only be a cleanup for the C parser not a correction, yet. Current state: <parser displayName="C source" id="c_function" commentExpr="(?s-m:/\*.*?\*/)|(?m-s://.*?$)" > <function mainExpr="^[\t ]*((?-i:static|const|virtual)\s+)?[\w:]+(\s+\w+)?(\s+|(\*|\*\*)\s+|\s+(\*|\*\*)|\s+(\*|\*\*)\s+)(\w+\s*::)?(?-i:\b(?!if|while|for)\b)\w+\s*\([^\)\(]*\)(\s*const\s*)?[\n\s]*\{" > <functionName> <nameExpr expr="(?-i:\b(?!if|while|for)\b)[\w~]+\s*\(" /> <nameExpr expr="[\w~]+" /> </functionName> </function> </parser>
  • how do you add an image into notepad?

    Locked
    2
    0 Votes
    2 Posts
    5k Views
    Claudia FrankC
    @ALLES-NL npp = text editor Cheers Claudia
  • Find and Replace bug: first instance replaced with font name?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC
    @Tom-Hall have npp6.0 available and tried to replicate this issue, wasn’t successful. What I’ve did is copied your sample text double click on one instance of pvtz pressed ctrl+h put in abcd in “replace with” field (“find what” was already filled) used replace or replace all and all instances of pvtz got replaced by abcd - as expected. Can you confirm this behavior by using same steps? Btw. do you have any plugins installed? Cheers Claudia
  • UDL: TAB character as delimiter

    Locked delimiter tab udl
    4
    0 Votes
    4 Posts
    3k Views
    MAPJe71M
    Notepad++ uses the native Scintilla YAML (Yet Another Multicolumn Layout) lexer.
  • Open *.txt by default

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC
    @Lionel-Modra afaik you can’t to this with the builtin file dialog but the explorer plugin has such functionality. Cheers Claudia
  • Notepad++ 5.1.1 missing

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • No Default Extension for JSON language

    Locked highlight extension language default json
    5
    0 Votes
    5 Posts
    7k Views
    SuncatcherS
    @Claudia-Frank, thanks. The trick with AppData directory renaming worked. It seems that different configuration files conflicted.
  • how to open this link in notepad

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC
    @JackshowX has been already addressed here. Cheers Claudia
  • Search Results Window No Longer Displaying

    Locked
    2
    0 Votes
    2 Posts
    8k Views
    Claudia FrankC
    @Jean-Braithwaite there was an incident in the past which was solved by renaming %APPDATA%\notepad++ directory. It will be recreated but this could mean that you might have to copy over files from old to new directory. Cheers Claudia
  • Keyboard Shortcut for moving current tab?

    Locked
    4
    0 Votes
    4 Posts
    5k Views
    P
    Hello, “is there a keyboard shortcut to move the current tab left or right (or even all the way to the right)?” Currently there isn’t such command available thus there is also no way to have a shortcut. The good news is that in the new N++ version (when it becomes available) this commands will be available. BR
  • Extra space in begining of lines

    Locked
    10
    0 Votes
    10 Posts
    7k Views
    mike2003M
    this bug on standart setup. u see my gif? no bbcode!
  • Really Simple.....

    Locked
    4
    0 Votes
    4 Posts
    4k Views
    Claudia FrankC
    @David-Thorpe you said you are using pure html. If this is the case, the Preview HTML plugin maybe the solution. Install using plugin manager, open it, edit your current doc and you get immediate update how it looks like. Cheers Claudia
  • i dont know how to fetching data needed

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC
    @bob-marpy if the lines are formatted that name part can be selected using column mode, then put cursor infront of name, scroll down to the end of list, press SHIFT+ALT and click to the right part of the name and this column is selected. CTRL+C to copy. If it isn’t formatted, either format it or you may think about Analyse plugin. Cheers Claudia
  • How to supress <br> balise in a subtitle file ?

    subtitles br
    5
    0 Votes
    5 Posts
    4k Views
    S
    I think she’s been contemplating that for 2 months. ;)
  • 0 Votes
    2 Posts
    2k Views
    J
    A DOS script master could probably do this with only shell commands in the batch file, but it is likely done easier by invoking some scripting language like AWK, PERL, or Python. It might even be possible using NPP, but I wouldn’t try to do it that way.
  • How do I create character blocks of specified length?

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    guy038G
    Hello Andrew, An other formulation, which separates any text in blocks of five characters long, whatever they are, would be : SEARCH .{5}(?=.) REPLACE $0\x20 Notes : The .{5} syntax matches for five consecutive standard characters I added the look-ahead form (?=.) , just to ensure that NO extra-space will be added, at the end of each long-line scan The $0 syntax represents the match of the whole regex, that is to say, any block of five characters And \x20 is, simply, the hexadecimal form of the space character Best Regards, guy038