• Notepad++ can download file but can not upload

    3
    0 Votes
    3 Posts
    985 Views
    f.h.p guglF

    Hi PeterJones,

    i thank you very much for your help.

    I again checked everything in my network and found a bad intermidiate connection. Maybe it was a pure chance that it was working after restartt.

    Now it is working fine again. Thank you!

    best regards
    Franz

  • How to find the Correct Regex pattern to extract data from a text file

    16
    0 Votes
    16 Posts
    2k Views
    Suresh ReddyS

    Thank you for the detailed explanation.

  • Search and replace between 2 files

    8
    0 Votes
    8 Posts
    497 Views
    Alan KilbornA

    @Makwana-Prahlad said in Search and replace between 2 files:

    PeopleSleptWith

    ???

    I think it is time for “banning” this individual.

    Grounds: He pollutes threads with posts with useless and unrelated information which will only make any future readers seeking a solution to the problem originally posed confused.

    Need more evidence: Look at his previous postings.

  • FIND AND REPLACE SOME CHARACTERS SET OF NUMBER IN NOTEPAD ++

    9
    0 Votes
    9 Posts
    257 Views
    miki simoneM

    Thanks Peter that’s just what I was looking for, it works perfectly. thanks a lot

  • UDL: folding code definitions that include ((EOL)) or similar

    4
    0 Votes
    4 Posts
    408 Views
    DIV-on-githubD

    For reference, the syntax is CFX Command Language (CCL), as used in several ANSYS applications, including session files for CFX-Pre and CST files for CFD Post.
    The colon–END syntax is called CCL “Simple Syntax” (for defining objects, including their constituent parameters).
    The lines starting with “>” are CCL “action line” syntax.
    There can also be lines of Perl code embedded in the same script file, which would start with “!” and are called “Power Syntax” (not included in the above example).

  • Is there an HTML equivalent to the XML Tools plugin?

    2
    0 Votes
    2 Posts
    292 Views
    TroshinDVT

    @Ben-Hutchinson said in Is there an HTML equivalent to the XML Tools plugin?:

    I am using tidy.exe + jN plugin for html formatting.
    jN plugin for user interface interaction with N++.
    tidy.exe for formatting.

    see https://github.com/trdm/jn-npp-scripts/blob/master/includes/trdmTidy.js
    functions formatHtmlFile(); myFormatHtmlFiles().
    alt text

    It was done for myself. “Just for Fun”. I know I need to improve.
    If you need to improve - write.

  • Custom Function List, help needed

    5
    1 Votes
    5 Posts
    367 Views
    guy038G

    Hello, @ericsambach, @dinkumoil and All;

    I think that you can simplify your function list as below :

    <function mainExpr="(?x) \h* [[:alnum:]]+ (?= (?:\s*~[^\n\r~]*~)* \s* \\[ )"> <functionName> <nameExpr expr="[[:alnum:]]+"/> </functionName> </function>

    Notes :

    No need of of (?-i) modifier, as we use the [[:alnum:]] Posix character class which is identical to [\u\l\d] or [A-Za-z0-9]

    No need of the (?s) modifier, as we don’t use any regex dot symbol ( . ) anyway !

    No need of the (?m) modifier, as we don’t use the ^ and $ assertions, too !

    The first \s* of the regex has been moved at beginning of the non-capturing group (?:\s*.....)

    Best Regards,

    guy038

  • search for certain data in a certain tag then copy these records - xml

    19
    0 Votes
    19 Posts
    1k Views
    Momo HaraM

    Ok, many thanks for all the information. once I start learning the expression, I will do it step by step… .

  • Intercept a particular Notepad ++ instance

    6
    2 Votes
    6 Posts
    307 Views
    Alan KilbornA

    @ArkadiuszMichalski said in Intercept a particular Notepad ++ instance:

    I will try check two Firefox portable if such situation also appear for them.

    Not sure why that is relevant.

    If not then there will probably be something wrong with Notepad ++.

    I don’t think you’re going to get much support in there being something “wrong with Notepad++” in this regard.

  • Sync with SimpleNote

    2
    0 Votes
    2 Posts
    423 Views
    PeterJonesP

    @SMylk ,

    In general, when asking about interfacing one product (in this case, Notepad++) with some other external product (in this case, SimpleNote), it’s considered polite to provide links to and/or descriptions of what SimpleNote is – I had to do a web search to find out what it is.

    As far as I know, there is no Notepad++ plugin to deal with SimpleNote – definitely not in the Plugins Admin plugin list. There may be one somewhere, but I don’t know what it is.

    After a brief search on SimpleNote, I saw that it has both a web interface and a local Windows app. Are you looking to connect to the web data, or to the data for a local app version? I think I saw that it’s default filetype is JSON – Notepad++ can read the raw JSON, but it won’t interpret it the way that SimpleNote does – but maybe opening the SimpleNote .json file with Notepad++ and using the JSON Viewer plugin would give you something like what you want.

    I guess the real question is “what are you trying to accomplish?” Because that might affect what answers people give.

  • Regexp fails to match UTF-8 characters

    15
    0 Votes
    15 Posts
    5k Views
    Alan KilbornA

    Wow.
    More to it than I’d have thought.
    Thanks for the insight.

  • 0 Votes
    4 Posts
    363 Views
    RedEyedRockerR

    @Terry-R
    Nevermind, I found tab settings under Language preferences.

  • How do I remove everything that doesn't have a certain number in it?

    3
    0 Votes
    3 Posts
    168 Views
    AdrianTweeterA

    Another approach uses the Mark lines facility. Use Menu => Search => Mark. Enter = 100 (i.e. =, space, and 100) into ‘Find what’. Ensure that ‘Bookmark line’ and ‘Wrap around’ are selected. Then click on ‘Mark all’. Expect to see blue circles on the found lines. Next use Menu => Search => Bookmark => Remove unmarked lines. That should leave only the wanted lines.

    If all the unwanted lines have = 50 then you could enter that into the ‘Find what’ and then use menu => Search => Bookmark => Remove bookmarked lines.

    For either you could use more complex ‘Find what’ strings with regular expressions.

  • JSON in Obsidian theme

    2
    0 Votes
    2 Posts
    845 Views
    Michael VincentM

    @Kale-Janeth said in JSON in Obsidian theme:

    or should I manually do it

    This is normally your best option for themes since they aren’t upgraded along with the default theme to include new languages or even new parsing / types for existing languages.

    Lucky for you I use Obsidian as well and I have already updated most of the missing languages and styles. Note you may want to cut/paste from this one or keep your existing Obsidian.xml backed up as I have some global formatting changes to text and color as well under the last GlobalStyles section. Maybe a diff between mine and yours will help you “migrate”.

    Good luck!

    Cheers.

  • 0 Votes
    2 Posts
    987 Views
    Terry RT

    @Jahmen-Myst said in How do I Copy/ Paste a YAML.txt file text into Excel and keep the format?:

    I need help to get my YAML game code .txt file

    Excel will try to interpret any input. So if text it will look for columns and this can result in text that looks like numbers being made into numbers. Other changes can also occur. To prevent this I suggest having double quotes (that’s the default character to tell Excel not to alter the content) around each line. Then import and hopefully the line will remain unaltered. Then you can cut the pieces out of column A into the other columns as you require.

    Terry

  • Possible way for User Installation?

    8
    0 Votes
    8 Posts
    6k Views
    PeterJonesP

    @Sebastian said in Possible way for User Installation?:

    tried to update the portable version

    Once you invoke the updater, it is trying to do things the installed way, not the portable way. If you don’t want the installer running, don’t use the “update” command.

    When I want a new version of the portable, it’s easiest to unzip it to a new folder, then do folder renames so that the newer portable ends up in the same directory where my association points. Alternately, you can copy files from one portable folder to another – I know there are other discussions on this forum that talk about what files you need to copy directly, and what files are best to compare an manually merge: search for “portable update” or similar phrasing.

  • Exit NP++ (tab) from cmdline (even there is unsaved, changed content)?

    4
    0 Votes
    4 Posts
    202 Views
  • UDL doesn't work as wanted

    3
    0 Votes
    3 Posts
    182 Views
    Juergen MoorsJ

    @PeterJones said in UDL doesn't work as wanted:

    Delimiter

    Thank you very much Peter! That helps:

    Screen Shot 09-24-20 at 09.40 AM.JPG

    Screen Shot 09-24-20 at 09.41 AM.JPG

    With these settings, the matches are correct shown in the whole logfile!
    Screen Shot 09-24-20 at 09.41 AM 001.JPG

    Screen Shot 09-24-20 at 09.41 AM 002.JPG

    Kind regards,
    Juergen

  • Move Session.xml

    5
    0 Votes
    5 Posts
    669 Views
    Alan KilbornA

    @James-Sabia

    Do we know if the expected behavior is to store the session.xml file in the cloud location or not?

    Based upon the comment here (at link below), I’d expect not, but who believes comments in code? :-)

    https://github.com/notepad-plus-plus/notepad-plus-plus/blob/85914b3c660ff55d06036b571c96c8f94bf1882b/PowerEditor/src/Parameters.cpp#L1064

  • Simple text clean up

    7
    0 Votes
    7 Posts
    2k Views
    guy038G

    Hello, @adam-labuš, @alan-kilborn, @m_andre_z_eckenrode and All,

    Ah, OK ! With your new specifications, it’s easier to get the right regex, at once ;-))

    But when you said :

    For the other lines I want to delete everything else except lines that looks like this

    ;LAYER:1

    We don’t know if you speak of lines which begin, contain or end with ;LAYER:1 ! I suppose that it is which begin…

    Then, from this simple example, below :

    G1 X184.218 Y123.524 E1.81219 G1 X183.179 Y125.34 E1.83974 M204 S625 ;LAYER:1 bla bla blah M205 X10 Y10 G0 F2571.4 X182.84 Y125.092 M204 S500 G1 X183.179 Y125.34 E1.83974

    The following regex S/R

    SEARCH (?-si)^G[01].+(X\d+\.\d+\x20Y\d+\.\d+).*|^(?!;LAYER:1).+\R

    REPLACE \1

    would output this text :

    X184.218 Y123.524 X183.179 Y125.34 ;LAYER:1 bla bla blah X182.84 Y125.092 X183.179 Y125.34

    Notes :

    The in line modifiers (?-si) mean that :

    Any dot regex symbol represents a single standard character and not EOL chars, as \r or \n (?-s)

    The search is run in a non-insensitive way (?-i)

    Then the search regex contains two alternatives, separated with the | symbol :

    The regex ^G[01].+(X\d+\.\d+\x20Y\d+\.\d+).*

    The part ^G[01] looks for strings G0 or G1, beginning current line

    The part .+ represents any non-null range of standard characters

    The part (X\d+\.\d+\x20Y\d+\.\d+) search for the exact letter X, followed with some digits \d+, followed with a literal dot \. followed by decimal digits \d+ and a space char \x20 then the exact letter Y and … ( same process than for X ). As all the part is surrounded by parentheses, its contents are stored as group 1

    Finally, the part .* represents any range of standard characters, possibly null

    The regex ^(?!;LAYER:1).+\R

    The part ^(?!;LAYER:1) search all the lines which not begin with the string ;LAYER:1

    And the part .+\R catches all the characters of any non-null line .+, with its line-break chars \R ( = \r\n for Windows files, \n for Unix files, or \r for Mac files )

    In replacement :

    If the left regex matches, then the group 1 is defined and corresponds to the XY coordinates, which must be rewritten => \1

    Else, the right regex is used. As no group is defined, in the second alternative, the pointer to group 1 \1 return a null string. So, the current matched line is just deleted !

    Best Regards,

    guy038