• Plugin Failures "Installation of --- Failed". Error

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    2 Posts
    2k Views
    Vasile CarausV

    my backup works almost fine, I believe notepad++ save all files, even the new files without name, after a particular time, like 30 minutes. I don’t know exactly. I lost recently a file, I had 4 new unsave files.

  • Skipping Blank Lines?

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    Vasile CarausV

    Search:
    \s+(.*?)

    Replace with:
    (Leave one Space)

    Or another solution:

    Search:
    \R
    Replace by:
    (Leave one space)

  • New Search in Search Results Does Not Work

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Backus-Naur Form

    3
    0 Votes
    3 Posts
    3k Views
    Arjan WiskerkeA

    That is correct.
    I thought it ought to be on the standard syntaxis list. But that would be more like a argument of aesthetics. I don’t think it is going to be used very often.

    I appreciate your response , Sorry for my late reaction, I seldom come to this forum.

  • Margin Manipulation

    Locked
    10
    0 Votes
    10 Posts
    7k Views
    Claudia FrankC

    @Scott-Sumner

    Hi Scott,

    are you more interested in how to create your own marker symbol or how to show a marker
    in the margin when changes occur?

    A quick script for the later would look like

    editor.setMarginTypeN(3,4) editor.setMarginWidthN(3,20) def callback_MODIFIED(args): if args['modificationType'] & 0x1: editor.marginSetText(editor.lineFromPosition(args['position']), '>') elif args['modificationType'] & 0x2: editor.marginSetText(editor.lineFromPosition(args['position']), '<') editor.clearCallbacks([SCINTILLANOTIFICATION.MODIFIED]) editor.callback(callback_MODIFIED, [SCINTILLANOTIFICATION.MODIFIED])

    The script uses a text marker instead of a real symbol.
    ‘>’ should indicate that something was added, and … you know ;-)

    If it is about changing symbols, hmm …, I didn’t play with it yet. It would involve using

    SCI_MARKERDEFINEPIXMAP(int markerNumber, const char *xpm) SCI_MARKERDEFINERGBAIMAGE(int markerNumber, const char *pixels)

    and others to create the images first and then assign like @dail already showed.
    If there is something I can do, let me know - this would be much more interesting than
    writing boring documentation.

    Cheers
    Claudia

  • Line numbering starting at zero?

    Locked
    3
    0 Votes
    3 Posts
    5k Views
    dailD

    Since this got derailed I split the second half of the original discussion into a new topic here

  • function/code-block auto indentation

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Claudia FrankC

    @kczx3

    as MAPJe71 already said, not natively but with a scripting language plugin
    like python script or lua it should be possible to write a script which will do the job.

    Cheers
    Claudia

  • 0 Votes
    4 Posts
    3k Views
    Claudia FrankC

    @MAPJe71

    well, depends ;-) could be a goal or a gate or an anonymous web broswer ;-)

    Cheers
    Claudia

  • UDL Autocomplete:keywords with space is shown in multiple lines

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Problem adding and copy-pasting UTF characters.

    Locked
    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Notepad++ default charset for newly opened files

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Wild card again

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Mark RomerM

    If you just want the file names, you can use a Regular expression find and replace. I’m not a regex expert, but this worked for me:

    Under Find what: ^.*\\(.+) n:.*$ Under Replace with: $1

    What this does is it matches an entire line (^ means the start of the line and $ means the end of the line). Within that line, it creates a capture group (the bit in parentheses, .+, which is one or more of any character) that is preceded by the part from the beginning of the line to a slash, and followed by a space followed by “n:” followed by zero or more characters to the end of the line. The $1 in Replace with means to replace with the contents of the first capture group.

    This will take you from

    copy k:\apps\demex\system\ABBREV.DBF n:\apps\demex\system\ABBREV.DBF /Y copy k:\apps\demex\system\TEST.DBF n:\apps\demex\system\TEST.DBF /Y copy k:\apps\demex\system\"abc def ghi.DBF" n:\apps\demex\system\"abc def ghi.DBF" /Y copy k:\apps\demex\system\1234567890.DBF n:\apps\demex\system\1234567890.DBF /Y copy k:\apps\demex\system\Me.DBF n:\apps\demex\system\Me.DBF /Y

    to

    ABBREV.DBF TEST.DBF "abc def ghi.DBF" 1234567890.DBF Me.DBF
  • UDL: Colon(:) at end of line as a keyword to style the whole line

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Prefixes for numbers don't work with letters, when using own syntax

    4
    0 Votes
    4 Posts
    3k Views
    Сергей Чепцов68С

    @PeterCJ-AtWork Thanks a lot! It works - prefix 2 and extras 1. Really confusing…

  • Clean a file using Regex

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    guy038G

    Hi all,

    In my previous post, I gave a general method to replace a specific character by an other, everywhere in lines of a delimited text, except for a range, between column c1 and c2. I now give you an extension of that method to SEVERAL fixed zones to exclude !

    I mean :

    ^---------- Zone 1 to exclude ------------ Zone 2 to exclude -------------------- Zone 3 to exclude ------------$

    So, let’s suppose the original text, below :

    abcd,04,,11111111, 22,ANYWORD ,ANYWORD,ANY,QZERTY,001,,5555,,AN,Y ANY,pqrst,00x,ANYWORD ,ANYWORD,9A9 ,Last Field, fghi,02,,22222222, 22,ANY ,ANY, WORDS, ANY,AZERTY,999,,6666,,ANY AN,Y,uvwxy,01y,ANY ,ANY, WORDS,,7Z3 ,Last Field, klmn,09,,33333333, 22,WORDS,ANY, WORDS,ANY,TEST-1,123,,7777,,ANY,,ANY,zabcd,02z,,ORDS,ANY, WORDS,3H5 ,Last Field,

    I defined 3 zones to exclude, where the comma character will NOT be changed, while the S/R process :

    The zone 1, which starts at column 26 and ends at column 52 => S1= 26 and E1 = 52 The zone 2, which starts at column 65 and ends at column 72 => S2= 65 and E2 = 72 The zone 3, which starts at column 84 and ends at column 99 => S3= 84 and E3 = 99

    As previously explained, we, temporarily, add the # or @ boundaries, in order to delimit these 3 zones, with the general S/R, below :

    ^(.{S1-1})(.{E1-S1+1})(.{S2-E1-1})(.{E2-S2+1})(.{S3-E2-1))(.{E3-S3+1})..............(.{Sn-En-1-1})(.{En-Sn+1})

    With the given values of S1 through E3 above, we get the following S/R :

    SEARCH : ^(.{25})(.{27})(.{12})(.{8})(.{11})(.{16})

    REPLACE : \1#\2@\3#\4@\5#\6@

    which gives us the delimited text, below, with the boundaries :

    abcd,04,,11111111, 22,#ANYWORD ,ANYWORD,ANY,QZERTY@,001,,5555,,#AN,Y ANY@,pqrst,00x,#ANYWORD ,ANYWORD@,9A9 ,Last Field, fghi,02,,22222222, 22,#ANY ,ANY, WORDS, ANY,AZERTY@,999,,6666,,#ANY AN,Y@,uvwxy,01y,#ANY ,ANY, WORDS,@,7Z3 ,Last Field, klmn,09,,33333333, 22,#WORDS,ANY, WORDS,ANY,TEST-1@,123,,7777,,#ANY,,ANY@,zabcd,02z,#,ORDS,ANY, WORDS@,3H5 ,Last Field,

    Then, running the second regex S/R, below :

    SEARCH : ,(?=[^@]*#)|,(?![^#]*@)|(#|@)

    REPLACE : (?1:_)

    we obtain the final text :

    abcd_04__11111111_ 22_ANYWORD ,ANYWORD,ANY,QZERTY_001__5555__AN,Y ANY_pqrst_00x_ANYWORD ,ANYWORD_9A9 _Last Field_ fghi_02__22222222_ 22_ANY ,ANY, WORDS, ANY,AZERTY_999__6666__ANY AN,Y_uvwxy_01y_ANY ,ANY, WORDS,_7Z3 _Last Field_ klmn_09__33333333_ 22_WORDS,ANY, WORDS,ANY,TEST-1_123__7777__ANY,,ANY_zabcd_02z_,ORDS,ANY, WORDS_3H5 _Last Field_

    As expected, all the commas, located from column 26 till column 52, from column 65 till column 72 and from column 84 till column 99, have NOT been changed into an underscore character !

    Notes :

    In comparison to the previous regexes, only the look-aheads of the second S/R, are slightly different :

    The positive look-ahead (?=[^@]*#) verifies that, from the cursor location, a # character, can be found further, on the current line scanned, without any @ character, between the cursor location and the # location

    The negative look-ahead (?![^#]*@) verifies that, from the cursor location, a @ character, cannot be found further, on the current line scanned, without any # character, between the cursor location and the @ location

    Cheers,

    guy038

  • New to notepad and html; work won't show up in browsers

    Locked
    3
    0 Votes
    3 Posts
    5k Views
    Ellen Brewer JohnE

    Thank you very much for your reply! I was able to sort out my issues.

  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • search and select files that contains a particular languages

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Use regex to replace backspace by underscore

    Locked
    7
    0 Votes
    7 Posts
    9k Views
    Mauricio SalazarM

    Thank you, it worked well

    Best Regards