• @Claudia-Frank said:

    just for clarification, you are happy? No further modification needed?

    Yeah, it looks good enough. Ty.

  • @Marv-Wagner

    yes, open file replace dialog, select extended in search mode
    and use \t for tab char.

    Cheers
    Claudia

  • I have the Synchronize Vertical Scrolling OFF/disabled when I see the problem behavior.

    When I turn Synchronize Vertical Scrolling ON it gets weird.

    If both views are at line 1 with my focus in the left view, and I then set Synchronize ON, then move the focus to the right view and scroll down to the end (2003) the left view follows along.

    If I then move the focus back to the left view the cursor disappears and both views stay at the end. If I then press the down arrow once both views snap to line 2 and the cursor appears at line 2!

    If I then move the focus back to the right view the cursor again disappears and both views stay at the top. If I then press the down arrow once both views snap to the bottom of the file and the cursor appears back at line 2003!

    With sychronize ON each view seems to have its own memory of where you left it and it goes there when you move the focus dragging the other view along with it.

    With synch OFF, the left view at line 100, the focus in the right view I can scroll the right view independently of the left. If I add a line in the right view at line 20 (above the position of the left view) the left view doesn’t move. If I add a line in the right view at line 120, (below the top of the left view), the line opens up in the left view. If I add a line in the right view at line 160, (below the bottom of the left view screen), the left view doesn’t move. But, if I move further down in the file in the right view and add a line at say 1800, the left view will snap down to show the added line.

    The behavior is hightly inconsistent. Hmmmmmmmmm.

  • Hello, @ángela-rojas,

    Not very difficult with a regular expression, indeed !

    Assuming that :

    The word Wavelength, with that exact case, begins a line and is followed by, at least, one space character

    The different numbers, beginning the following lines, are followed by a single space character

    Just follow the few steps, below :

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

    Open the Replace dialog ( Ctrl + H )

    Type (?-i)^Wavelength +|\R\d+ , in the Find what: box

    Leave the Replace with: box EMPTY

    Click on the Replace All button

    Et voilà !

    Notes :

    The regex search looks, either, for :

    The string Wavelength, with that exact case, followed by, at least, one space character (+ )

    Some End of Line characters (\R ), immediately followed by, at least, one digit ( \d+ )

    Whatever the case found, the overall match is deleted, due to the empty replacement regex

    Best Regards

    guy038

    P.S. :

    In case the numbers, beginning the line, are followed by several space characters, prefer the regex S/R, below :

    SEARCH (?-i)^Wavelength +|\R(\d+) +

    REPLACE ?1\x20

    If the search must not be sensitive to case, just change the (?-i) part by the (?i) syntax
  • Thank you so much!

  • @hatchcanyon

    I have an xAMMP - can I use this as a server and how to communice between Notepad++, XAMMP and firefox?

    Yes, you can use whatever webserver you want, it just matters how you call the browser.
    You either can use the Run from the run menu with something like

    INSTALLATION_PATH\YOUR_BROWSER.exe http://localhost…/$(FILE_NAME)

    where $(FILE_NAME) gets automatically replaced by the filename of the current opened document
    or
    you edit Shortcuts.xml, which is the file holds, amongst others, the configuration how
    Launch in… gets called. Use again http://localhost…/$(FILE_NAME) as the parameter to
    the browser
    or
    you can use npp_exec plugin which offers additional features like you want to start the webserver in advance etc…

    Cheers
    Claudia

  • Being in healthcare Services industry I have to work on manipulating Middleware data.
    One of the things that I found best about Notepad++ is multiple text editing options.

    To mark lines having same pattern:

    Copy pattern and type Ctrl + f.

    list item In Mark tab paste the pattern you are looking for in document.

    list item Tick Bookmark Line button and click on Mark All.

    list item Once all lines with pattern are marked you can delete them by

    list item Go to Search --> Bookmarks --> Remove Bookmarked Lines.

    Refer this site for more descriptive and pictorial expalainations.

    http://www.downloadorinstall.com/best-notepad-tips-and-tricks-for-faster-work-and-development/

  • You’re welcome.
    I’m glad it works for you.

  • @Bruno-Vincent

    If you click on your “avatar” (yours is the blue circle that says “Xuzo WEB DESIGN”) you will see all of your postings from the most recent to the oldest. No one can see your email, so it would be impossible to email you “answers”. If someone replies to one of your postings, or to a thread that you add to, you will see a fat red number appear on the bell icon that appears on the upper right–that’s your notification.

  • @Michael-Moser

    it is Settings->Style Configurator what you are looking for.

    Concerning the font issue - could it be that you are running windows 10?
    If so, it is not the first time that I read that an update created an font issue.

    Cheers
    Claudia

  • TextFX has several functions I haven’t been able to find elsewhere:

    Sentence case Rot13 Delete (surplus) blank lines (both ways) Unwrap text (could be improved to handle hyphenation and detecting paragraph breaks) Strip HTML tags table (non)tabs (I never noticed a difference here between tabs and nontabs) Tools -> Sort lines case (in)sensitive at column Tools -> Base64 Decode

    If you know of any (easy, quick, intuitive) way of doing these things I would be happy to know.

  • Hello, @Madill,

    Don’t bother about it. As I’m one of the moderators, of the N++ Community, I was able, in your initial post, to click, first, on the Ask as question item. Then, I, immediately, clicked on the Mark as Solved item !

    Best Regards,

    guy038

    P.S. : Have a look to my second post, as well :-)

  • Hi, @madill, @mapje71, and All,

    Updated on 07-22-17 ( \v syntax added )

    MaDill, I, slightly, changed the mainExpr regex, as below :

    (?i)^\h*(?:(?-i:Sub|Function)\s+\K\w+|'\*\s+\K(?-s:.+))

    Notes :

    At beginning, the part (?i)^\h* means that the search is, globally, case insensitive and that the key-words ( Sub, Function and '* may be preceded by optional tabulation and/or space characters

    Then, the general structure, which follows, is a non-capturing group, made of two alternatives ( (?:.....|......) )

    , As I thought that the key-words Sub and Function must have that strict case, I decided to create the sensitive non-capturing group (?-i:Sub|Function)

    Any key-words must be followed by, at least, one, horizontal or vertical, White Space character ( \s+ )

    Finally, after the reset behaviour, due to the \K syntax, we display, in the Function List panel, either :

    The name of current subroutine or function ( \w+, in case of key-words Sub/Function

    All the rest of current line, only, (?-s:.+), in case of key-word '\*

    Do hope, you’ll like this interpretation ;-))

    In all this discussion, we’re using, in regexes, either, the \s and/or the \h syntaxes. We could also add the \v syntax ! What they, all, refer to ?

    Well, from the Wiki article :

    https://en.wikipedia.org/wiki/Whitespace_character

    we hear of the White Space definition, which is any character or series of characters, that represent horizontal or vertical space in typography. They, all, have the Unicode property “WSpace=Y”.

    So, strictly :

    The Shorthand Character Class \s, used in the N++ Boost regex engine, matches any Vertical or Horizontal White Space character, of the list below : U+0009 CHARACTER TABULATION U+000A LINE FEED U+000B VERTICAL TABULATION U+000C FORM FEED U+000D CARRIAGE RETURN U+0020 SPACE U+0085 NEXT LINE U+00A0   NO-BREAK SPACE U+1680   OGHAM SPACE MARK U+2000   EN QUAD U+2001   EM QUAD U+2002   EN SPACE U+2003   EM SPACE U+2004   THREE-PER-EM SPACE U+2005   FOUR-PER-EM SPACE U+2006   SIX-PER-EM SPACE U+2007   FIGURE SPACE U+2008   PUNCTUATION SPACE U+2009   THIN SPACE U+200A   HAIR SPACE U+2028 LINE SEPARATOR U+2029 
 PARAGRAPH SEPARATOR U+202F   NARROW NO-BREAK SPACE U+205F   MEDIUM MATHEMATICAL SPACE U+3000   IDEOGRAPHIC SPACE

    Moreover, it, also, matches the NON-WhiteSpace character, below :

    U+200B ​ ZERO WIDTH SPACE The Shorthand Character Class \h, used in the N++ Boost regex engine, matches any Horizontal White Space character, of the list below : U+0009 CHARACTER TABULATION U+0020 SPACE U+00A0   NO-BREAK SPACE U+1680   OGHAM SPACE MARK U+2000   EN QUAD U+2001   EM QUAD U+2002   EN SPACE U+2003   EM SPACE U+2004   THREE-PER-EM SPACE U+2005   FOUR-PER-EM SPACE U+2006   SIX-PER-EM SPACE U+2007   FIGURE SPACE U+2008   PUNCTUATION SPACE U+2009   THIN SPACE U+200A   HAIR SPACE U+202F   NARROW NO-BREAK SPACE U+205F   MEDIUM MATHEMATICAL SPACE U+3000   IDEOGRAPHIC SPACE

    As before, it, also, matches the NON-WhiteSpace character, below :

    U+200B ​ ZERO WIDTH SPACE The Shorthand Character Class \v, used in the N++ Boost regex engine, matches any Vertical White Space character, of the list below : U+000A LINE FEED U+000B VERTICAL TABULATION U+000C FORM FEED U+000D CARRIAGE RETURN U+0085 NEXT LINE U+2028 LINE SEPARATOR U+2029 
 PARAGRAPH SEPARATOR

    And, logically, the \s class character is identical to the union of the two classes \h and \v !!

    Luckily, most of these characters are never found, in Western scripts. Then, practically, we, just, have to remember that :

    The \s syntax is, generally, identical to the simple class [\t\n\r\x20]

    The \h syntax is, generally, identical to the simple class [\t\x20]

    The \v syntax is, generally, identical to the simple class [\n\r]

    Cheers,

    guy038

    BTW, MaDill, the MAPJe71's last regex does work, properly, on my “old” Win WP configuration !

  • @Claudia-Frank

    Just to clarify the “hang” is a really hard hang where I have to kill N++ and restart it, not just a long delay…

  • @Scott-Sumner

    in general yes, but not for the moment, currently I’m doing 3 projects in parallel
    And I don’t see that this progresses. :-)

    Cheers
    Claudia

  • Thanks Ronny-Fritsch. That did it.

  • I adjust by means of these programs
    http://azjio.ucoz.ru/load/vsjo_dlja_autoit3/skompilirovannye_skripty/assotiations/4-1-0-10
    You throw a notepad++ in the program and it registers files

    http://azjio.ucoz.ru/load/vsjo_dlja_autoit3/skompilirovannye_skripty/contmenu/4-1-0-34
    Make the data export to a reg-file

    CMD-FILE

    :: Cancellation of previous registration
    ::regsvr32.exe /u /s “%~dp0NppShell.dll”

    :: Setting a variable root directory
    SET Path=%~dp0
    SET Path=%Path:~0,-1%

    regedit /s “%Path%\notepad_reg.reg”

    :: Register NppShell.dll for the context menu
    regsvr32.exe /s “%Path%\NppShell_05.dll”

    :: Associations
    Reg.exe add “HKCR\txtfile\shell\open\command” /v “” /t REG_SZ /d “”%Path%\notepad++.exe" “%%1"” /f
    Reg.exe add “HKCR\phpfile\Shell\Open\Command” /v “” /t REG_SZ /d “”%Path%\notepad++.exe" “%%1"” /f
    Reg.exe add “HKCR\inifile\shell\open\command” /v “” /t REG_SZ /d “”%Path%\notepad++.exe" “%%1"” /f
    Reg.exe add “HKCR\inffile\shell\open\command” /v “” /t REG_SZ /d “”%Path%\notepad++.exe" “%%1"” /f

    :: Change the text of the item in context menu
    Reg.exe add “HKCR*\shellex\ContextMenuHandlers\Notepad++” /v “” /t REG_SZ /d “{00F3C2EC-A6EE-11DE-A03A-EF8F55D89593}” /f
    Reg.exe add “HKCR\CLSID{00F3C2EC-A6EE-11DE-A03A-EF8F55D89593}\Settings” /v “Title” /t REG_SZ /d “&Notepad++” /f

    :: View HTML code
    Reg.exe add “HKLM\SOFTWARE\Microsoft\Internet Explorer\View Source Editor\Editor Name” /v “” /t REG_SZ /d “%Path%\nppIExplorerShell.exe” /f

    ======================================================================

  • Dude. The answers that the other people on this board can give can be phenomenal if you give them a clear idea of what you’re trying to do and what you have to work with. Posting a picture of XML instead of actual XML is almost mean. /chastisement. :)

    It seems like you just want the contents of the body tag and you don’t need it to be in XML format. If that’s the case you can load the “XML Tools” plugin and do an “Evaluate XPath expression”. For instance if my XML looks like this:
    <table>
    <sms protocol=“0” date=“12.12.121.1” type=“1” subject=“null” body=“this is some stuff” ></sms>
    <sms protocol=“1” date=“12.12.121.2” type=“1” subject=“null” body=“this is some stuff” ></sms>
    <sms protocol=“2” date=“12.12.121.3” type=“1” subject=“null” body=“this is some stuff” ></sms>
    <sms protocol=“3” date=“12.12.121.4” type=“1” subject=“null” body=“this is some stuff” ></sms>
    </table>

    I can put in /table/sms/@body and click the evaluate button in the XPath Expression Evaluation window and it will give me all the body attribute contents and I can copy them to the clipboard.

    If that’s not what you’re looking for, you may have to give a little more detail and maybe a bigger chunk of your XML.

Internal error.

Oops! Looks like something went wrong!