• Issue with encoding in htaccess

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Getting text to go to the next line.

    2
    0 Votes
    2 Posts
    4k Views
    Saad MuhammadS

    If you want your text to go to the next line, you can use the <br> element. that means break, the <br> tag has no end tag that is in the HTML, while in the XHTML the <br> tag must be properly closed. Note that the <br> tag is used to enter line breaks, not to separate paragraphs. For example,

    <!DOCTYPE html>
    <html>
    <body>

    <p>
    To break lines<br>in a text,<br>use the br element.
    </p>

    </body>
    </html>

    here is your output:

    To break lines
    in a text,
    use the br element.

    Please let me know if it is useful. Thank you.

  • How to delete all lines in a document which has a specific text

    Locked
    5
    0 Votes
    5 Posts
    31k Views
    guy038G

    Hi, D visser,

    Oh ! you’re right ! Although it was correctly written in the Notes section, the general regex should be :

    (?-s)^.*Your Character|String|Range of Words|Regex expression.*\R ( and NOT (?s)..... ! )

    So, I updated my previous post !

    Below, here are the FOUR search regex, to enter in the Find what zone, in order to delete :

    A) All lines containing the string MEX, in that EXACT case

    (?-is)^.*MEX.*\R

    B) All lines containing the string MEX, WHATEVER its case

    (?i-s)^.*MEX.*\R

    C) All lines containing the word MEX, in that EXACT case

    (?-is)^.*\bMEX\b.*\R

    D) All lines containing the word MEX, WHATEVER its case

    (?i-s)^.*\bMEX\b.*\R

    Notes :

    Remember that the Replace with: zone must be EMPTY !

    The \b assertions represents, either, the zero-length limit, between :

    ( A non-word character OR the very beginning of a file ) AND a word character

    A word character AND ( a non-word character OR the very end of a file )

    The in-line modifier (?-i) forces the search, in a NON-insensitive way

    The in-line modifier (?i) forces the search, in a insensitive way

    So, suppose the original text, of four lines :

    Line 1 : Example ofMEX text Line 2 : Example ofmeX text Line 3 : Example of MEX text Line 4 : Example of MEx text

    Then :

    The regex A) would delete the lines 1 and 3

    The regex B) would delete the lines 1, 2, 3 and 4

    The regex C) would delete the line 3

    The regex D) would delete the lines 3 and 4

    Cheers,

    guy038

  • Toggle Cases in Switch

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Installer as MSI package

    Locked
    1
    0 Votes
    1 Posts
    8k Views
    No one has replied
  • Text Formatting

    Locked
    4
    0 Votes
    4 Posts
    8k Views
    ?

    @gstavi Yes that was spot on…my text manipulation was looking at \r [CR] when all it needed was to llok at \n [LF] first instead ! Thanks :)

  • How to paste raw data from image clipboard into notepad++?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    thoriq abdullahT

    must be try from new comer like me.

  • Indentation problem, html & php

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Save As Not Working

    9
    1 Votes
    9 Posts
    10k Views
    Santiago Raúl Molina RamirezS

    Check your security backup folder, I had the same problem and I solved it.

  • How to increase the max keyword dropdown size?

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    dailD

    is this only work for specific language

    Lua is just used to control Scintilla features that are not exposed by Notepad++, but it will work for any language.

    what’s the “editor1” and “editor2” refer to ?

    Since Notepad++ can have two files open side-by-side it has 2 “editor” instances refered to as “editor1” and “editor2”. So setting both editors makes sure that if you move a file to another view it still works correctly.

    these i guess…https://dail8859.github.io/LuaScript/

    Yes that’s the official documentation.

  • Notepad++ doesn't remember docked window position

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    Nathan Griffiths141N

    I have solved my problem with DisplayFusion.

    A native fix would still be desirable.

  • Double Quotation Marks

    Locked
    3
    0 Votes
    3 Posts
    4k Views
    guy038G

    Hello, Surinder Ram,

    In your example, below, do you mean that the separator values is the real VERTICAL LINE, of Unicode value \x007C ?

    "Value_1"|"Value_2"|"Value_3"....

    If so, I suppose that you would like that :

    The syntax ""| would be changed into "|"

    The syntax |"" would be changed into "|"

    The syntax "" would be changed into "|"

    The syntax "| , NOT followed by a double quote mark, would be changed into "|"

    The syntax |" , NOT preceded by a double quote mark, would be changed into "|"

    The syntax |, NOT surrounded by two double quote marks, would be changed into "|"

    And, if any of these syntaxes, above, are found at the end of the current line, it would be changed into a single final double quote mark (")

    And, also, when the normal separator form "|" or NO separator, at all, is found, at end of the current line, it would be changed into a single " character

    In that case, just follow the few steps, below :

    Go back to the very beginning of your file ( Ctrl + Origin )

    Open the Replace dialog ( Ctrl + H )

    In the Find what zone, type (?:(""\||\|""|""|(?<!")\|"|"\|(?!")|(?<!")\|(?!")|"\|")|(?<=[^"|\r\n]))(?=(\R))|(?1)

    In the Replace with zone, type (?2":"|")

    Click on the Replace All button

    Et voilà !

    So, from the original example, below, where :

    Only, values 7 - 8 AND values 8 - 9 are correctly separated, on each line

    The value9 is correctly ended, in the first line, only

    value1"“|value2|”“value3"“value4”|value5|“value6|value7”|“value8”|“value9”
    value1"”|value2|““value3"“value4”|value5|“value6|value7”|“value8”|“value9|””
    value1"”|value2|““value3"“value4”|value5|“value6|value7”|“value8”|“value9"”|
    value1"”|value2|”“value3"“value4”|value5|“value6|value7”|“value8”|“value9"”
    value1"”|value2|““value3"“value4”|value5|“value6|value7”|“value8”|“value9|”
    value1"”|value2|”“value3"“value4”|value5|“value6|value7”|“value8”|“value9”|
    value1"”|value2|"“value3"“value4”|value5|“value6|value7”|“value8”|“value9|
    value1"”|value2|”“value3"“value4”|value5|“value6|value7”|“value8”|“value9
    value1"”|value2|”“value3"“value4”|value5|“value6|value7”|“value8”|“value9”|”

    After that S/R, the different separators would be changed and the different values correctly separated, as below :

    value1"|"value2"|"value3"|"value4"|"value5"|"value6"|"value7"|"value8"|"value9" value1"|"value2"|"value3"|"value4"|"value5"|"value6"|"value7"|"value8"|"value9" value1"|"value2"|"value3"|"value4"|"value5"|"value6"|"value7"|"value8"|"value9" value1"|"value2"|"value3"|"value4"|"value5"|"value6"|"value7"|"value8"|"value9" value1"|"value2"|"value3"|"value4"|"value5"|"value6"|"value7"|"value8"|"value9" value1"|"value2"|"value3"|"value4"|"value5"|"value6"|"value7"|"value8"|"value9" value1"|"value2"|"value3"|"value4"|"value5"|"value6"|"value7"|"value8"|"value9" value1"|"value2"|"value3"|"value4"|"value5"|"value6"|"value7"|"value8"|"value9" value1"|"value2"|"value3"|"value4"|"value5"|"value6"|"value7"|"value8"|"value9"

    If this S/R ,just, solves your problem, next time, I’ll explain the regexes used !

    Best Regards

    guy038

  • Regex: Add new empty line before/after some word - separated

    Locked
    2
    0 Votes
    2 Posts
    6k Views
    Vasile CarausV

    Add a new line After the word_2:

    Search: WORD_2
    Replace By: \n\nWORD_2\n\n

    Add a new line Before word_1:

    Search: WORD_1
    Replace By: \n\nWORD_1\n

    Read here more:
    http://www.rexegg.com/regex-quickstart.html

  • the result get from Nppexec is different from cmd

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Shortcut to replace all in replace dialog no longer works

    Locked
    5
    0 Votes
    5 Posts
    5k Views
    Scott SumnerS

    @Darius-Damalakas

    It appears that between 7.2 and 7.2.1 the “FInd All In Current Document” was assigned Alt+A as a keyboard- accelerator. This appears to be a duplicate assignment, since as you point out, the “Replace All” button has the “A” underlined. When you press Alt+A, the software finds the “Find All in Curr Doc” binding first and invokes that. The technique I linked to earlier should allow you to fix this.

    Regarding “resort(ing) to such magic…”, I guess the positive takeaway is that you can fix such things yourself without waiting on someone else to do it. And for some people that stretch Notepad++ to its utter limits, the “magic” is sometimes indispensable. :-)

  • saving files in notepad++

    Locked
    3
    0 Votes
    3 Posts
    5k Views
    Scott SumnerS

    @garyknott

    You can find a Notepad++ manual here: http://docs.notepad-plus-plus.org/index.php/NP%2B%2B_Guides

    I (re)found this by googling “Notepad++ manual” – not so difficult. :-)

  • Automatically open files and files in subfolders

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • How to show NPP Export Window

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Running a macro on all open docs

    Locked
    4
    0 Votes
    4 Posts
    7k Views
    Andy BayleyA

    Thanks for the reply! The individual files are XML order files and have lines which include the number of orders in that particular file. Merging them all into one wouldn’t be ideal without being able to extract them all after - possibly using a custom header as you mention. Ideally, the files also need to retain their filenames.

  • 0 Votes
    2 Posts
    2k Views
    cmeriauxC

    Please, provide debug info.
    Try to do a fresh install