• Searach a word and send results in a new file

    Locked
    9
    0 Votes
    9 Posts
    4k Views
    Claudia FrankC

    @Daniele-Mangiapelo

    good to see that you found a solution for you because I was just starting to write that
    the macro solution seems not to work correctly with the find result window.

    Cheers
    Claudia

  • Need help replacing HTML tags! Any help welcome.

    Locked
    5
    0 Votes
    5 Posts
    3k Views
    guy038G

    Hi, @carolin-marschke,

    I supposed that you’re speaking about the tag , as below, which starts, generally, an XML file !

    <?xml version=“1.0” encoding=“UTF-8” ?>

    Your troubles come from the Question mark character ( ? ), which is considered, in the regex universe, as a special character, also called a meta-character. So, by default, these characters are NOT simple literal characters !

    There are two different sets of meta-characters :

    Those, which are recognized anywhere in the pattern, EXCEPT within square brackets :

    \ General escape character, with several uses

    ^ Start of a line ( or a file )

    $ End of a line ( or a file )

    . Match any character, except new-line ones ( by default )

    [ Start a class definition or a class range

    | Start of an alternative branch

    ( Start of a sub-pattern group

    ) End of a sub-pattern group

    { Start a Min / Max range of a quantifier

    } End a `Min / Max range of a quantifier

    * 0 to more times, the preceding character or group

    +

    1 to more times, the preceding character or group

    Possessive behaviour of the quantifiers *, + and ?

    ?

    0 or 1 time, the preceding character or group

    Meaning extender, for groups or conditions, (....)

    Minimizer of the quantifiers *, + and ?

    Those, which are recognized within square brackets ( character class ), EXCLUSIVELY :

    \ General escape character

    ^ Negate the class, if first character of the class

    - Character range indicator

    [: Start of a POSIX character class, if followed by regular POSIX syntax

    :] End of a POSIX character class

    So, Carolin, if you need to search for any of the above characters, as a literal, you must escape it with the backslash character \

    Therefore, your regex must be rewritten as : (?i)<\?xml[^>]*>, with a \, right before the ? character !

    However, the regex (?-is)<\?xml.+?> give better results ! Indeed, due to the -s modifier, any dot will match standard characters, only, with case sensitivity. So, after matching the literal string <?xml, with that exact case ( <\?xml ), it looks for the shortest non-null range of characters ( .+? ), of the current line, till a closing symbol >

    Assuming that the unique XML line <?xml version=“1.0” encoding=“UTF-8” ?> would be split into the four lines, as below :

    <?xml ver sion="1.0" enc oding="UT F-8" ?>

    My regex doesn’t match this incorrect text, unlike your regex ! To get the same behaviour, you should change your regex as (?i)<\?xml[^>\r\n]*>. This time, the syntax [^>\r\n] matches any character, different from the > character AND different, also, from any EOL character :-))

    Cheers,

    guy038

  • Opera Browser in Notepad++

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Shepard

    Did you restart npp afterwards?
    Did you try to put the complete path for opera?
    $(FULL_CURRENT_PATH) is the correct variable but which file did you edit?
    Depending on your installation it might be that your shortcuts.xml is either the one in
    %APPDATA%\notepad++ directory or the one in the install directory.

    Cheers
    Claudia

  • NPPExec for Python: Passing Command Line Arguments

    4
    0 Votes
    4 Posts
    3k Views
    mattjhsnM

    Hey all. This is my first login ever and I’m here to thank Claudia Frank for posting the answer on how to execute python in N++. Found it on one search!

  • Pythonscript set-selection question

    Locked
    7
    0 Votes
    7 Posts
    3k Views
    Alan KilbornA

    @Claudia-Frank

    No worries, Claudia…I can let it go; it’s not that important…I withdraw the question(s).
    :)

  • Output line nubers when printing

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    Scott SumnerS

    @Tim-OBrien

    If this (or ANY posting on the Notepad++ Community site) is useful, don’t reply with a “thanks”, simply up-vote ( click the ^ in the ^ 0 v area on the right ).

  • split view or dual instance

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Scott SumnerS

    @Jeffery-P-Krause

    Even if Settings menu -> Preferences -> Multi-Instance is set to Default (mono-instance), right-clicking on an edit-window tab offers Move to New Instance and Open in New Instance choices that work.

    If this (or ANY posting on the Notepad++ Community site) is useful, don’t reply with a “thanks”, simply up-vote ( click the ^ in the ^ 0 v area on the right ).

  • Keystroke to switch focus from console window to active editor tab?

    12
    0 Votes
    12 Posts
    8k Views
    Scott SumnerS

    Another way to achieve the original goal of this thread (moving input focus) was inadvertently pointed out in this thread. Thus:

    Enable (tick) the Peek on tab feature in the MISC. section (of Settings menu -> Preferences). When your input focus is NOT in your active document (maybe it is in a console window or the Find-what zone of the Find window), but you want to move it there without changing caret position or destroying a currently-active selection(s), simply point the mouse at an inactive tab–assumes you have more than one file open–and the (IMO otherwise useless) document-peeker window will pop up. You will find input focus is now back in the editing window for the currently-active tab in the most recently-accessed view (view0 or view1).

  • how to paste text copyed on web from clipboard

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Joe-Eckel

    Either by using the normal Paste mechanism or by using the Paste Special function.

    Cheers
    Claudia

  • How to completely remove a language?

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Claudia FrankC

    @Mario-Valle

    Should I remove “r” from <Language name=“rebol” ext=“r reb” commentLine=“;” commentStart=“” commentEnd=“”> in the langs.xml file?

    Yes.

    Cheers
    Claudia

  • New metalang (folding list)

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    KrzysiuK

    Found it, yay. For now only one level, but that’s fine with me. For people who would look for the answer: Comment & Number tab, select Allow folding of comments, Comment line style: * :)

  • 0 Votes
    3 Posts
    9k Views
    Daniel BéginD

    Thank guy038, Clever! I’ll use it :-)

    However, (in case I have a really more complex manipulation to do!-), is it possible to do the above using XSL transformation from the XML Tools plugin?

  • FunctionList classrange question

    29
    0 Votes
    29 Posts
    18k Views
    MAPJe71M

    @oirfeodent see PR #3842 for my review.

  • 0 Votes
    3 Posts
    2k Views
    Charlie FullerC

    bingo…thankyou thankyou thankyou!

  • Emmet plugin not working win xp

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Deleting specific string from entire xml file?

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    Jim DaileyJ

    @Team-Caffeine

    The last part of Guy’s expression:

    \d+

    means 1 or more digits. If you want a digit, a period, and exactly 3 digits, one way is to use this:

    \d\.\d{3}

    The first \d is for a single digit. The \. is for a period (the period means any character whatsoever unless it has a \ in front of it). The final \d{3} means exactly 3 digits.

  • linking notepad++ to command prompt

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    decodermanD

    In cmd this would do the same:
    “Full Path to\notepad++.exe”

  • Keyboard shortcut for next/previous incremental search result?

    17
    0 Votes
    17 Posts
    14k Views
    guy038G

    Hi @scott-sumner and All,

    I did some tests and it happens that the double hit on the Windows logo key allows to put the focus back on the main editor windows, again, if a window can be anchored to the main editor windows, at its right, left, top or bottom side

    So, it concerns, from native N++, the Character Panel, Clipboard History, Search Results, Project, Folder as Workspace and the Function List windows, as well as most of plugin’s windows as, for instance, the Python or Lua console window !

    However, just note that if any of these “dockable” panels is not docked and is, simply, floating like a separate windows, the double hit on the Windows logo key does not allow, anymore, to have the focus back, on the main editor windows !

    Strangely, it does not work too, with the Document Map panel, which, however, can be anchored !

    Cheers,

    guy038

  • Change of Notepad++ background color

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Claudia FrankC

    @tomass1047

    Either use predefined themes or change the background color independently.
    Both ways can be achieved by using Settings->Style Configurator menu.

    Cheers
    Claudia

  • featureRequest: Return from search, with history.

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Scott SumnerS

    @James-Gale

    Well, I do it by setting a bookmark at where I want to come back to…

    ctrl+F2 (set bookmark) move away an arbitrary distance… shift+F2 (bring me back) ctrl+F2 (remove bookmark)

    If this or ANY posting on the Notepad++ Community is helpful to you, don’t hit reply and say only “thanks”–because this will look like “new mail” to all Community members. Just up-vote and only the poster will be notified–simply click on the little up-arrow in the upper-right of the posting you like: