• Open text file and jump to the end

    10
    0 Votes
    10 Posts
    2k Views
    Michael VincentM

    @Alan-Kilborn said in Open text file and jump to the end:

    I don’t see it as “hacky”.

    I was hoping -1 (negative one) would be like “last array element” and bring me to the last line, but it didn’t work. I would think that would be “less hacky”.

    :-)

    Cheers.

  • Notepad++ can download file but can not upload

    3
    0 Votes
    3 Posts
    1k 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
    744 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
    427 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
    539 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
    378 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
    582 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
    2k 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
    487 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
    517 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

    16
    0 Votes
    16 Posts
    6k Views
    Alan KilbornA

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

  • 0 Votes
    4 Posts
    551 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
    222 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
    941 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
    1k 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
    323 Views
  • UDL doesn't work as wanted

    3
    0 Votes
    3 Posts
    281 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
    904 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