• Add VHDL to functionList.xml and interpret port map as class

    12
    2 Votes
    12 Posts
    816 Views
    el-coder-sbE

    @MAPJe71 Thanks a lot for your effort!
    So I think this topic has come to an (temporary?) end.
    With your last solution most of the possibilities are covered.
    Everyone who needs 3 & 1e covered can use my last post (at least as good point to start from).

    If anyone else has any idea how to cover all the possibilities, feel free to post your ideas :-)

  • “.txt” file extension

    3
    0 Votes
    3 Posts
    913 Views
    Alan KilbornA

    @Jim-JC-Caulfield said in “.txt” file extension:

    After the last update

    Not sure what that means; please be specific with version numbers that you are talking about.

    If you are talking about 7.8.7, then default behavior is to do exactly what you want, so I don’t understand…

  • Find in files, Replace!

    6
    0 Votes
    6 Posts
    397 Views
    Terry RT

    @Kirk-Lauritzen said in Find in files, Replace!:

    wipe out every td in the cells (column 2)

    If I understand correctly you have many tables, all of which are 3 columns wide with varying numbers of rows. Assuming there is a Header row (1st row generally) and a Description column (again generally the left most column) which we don’t want to clear, you are just wanting to clear the 2nd column of variable data, leaving the 3rd column variable data intact

    I made up a small table with the above description in mind Its:

    <html> <head> <title> HTML td </title> </head> <body> <h1>Clear 1st column variable data</h1> <h2>HTML td</h2> <table border="1" width="500"> <tr> <th>NAME</th> <th>AGE</th> <th>BRANCH</th> </tr> <tr> <td>BITTU</p></td> <td><p class=“d”>22</p></td> <td><p class=“b”>CSE</p></td> </tr> <tr> <td>RAKESH</p></td> <td><p class=“d”>25</p></td> <td><p class=“b”>EC</p></td> </tr> </table> </body> </html>

    Note that I’ve assumed here that the <p class=...> code is ONLY on the variable data fields. You do state =d and =b so these are used to identify the correct column to clear. You will need to confirm whether that is true if you want to try my solution.

    So using the “Replace” function
    Find What:(?s)(<td><p class.+?“d”>).+?(</p></td>)
    Replace With:\1\2
    You MUST use search mode “regular expression” and have wrap around ticked. I noted you mentioned extended in your first post, however I have shown the selection “regular expression” as the mode to use. You also mentioned about a particular field as “containing 21 wrapped lines”. I’m thinking these lines are in fact only 1 line and if you were to turn off “word wrap” (in Notepad++) then that field would extend far to the right (off screen).

    There a few assumptions I’ve had to make as you have not made much very clear, as the others have stated. In fact an example, much like I produced above, would have made a significant step forward in outlining your problem and request. To go even further, you could show that same code with the relevant data removed, thus giving us a more complete picture of the before and after situation (as @PeterJones mentioned). The quotes you use around the d and b may also have been altered in copying into the NPP post so you may need to alter them in my “Find What” expression if they aren’t of the correct kind, I did copy them from your post.

    Terry

  • How to display CSS style on a PHP page?

    4
    0 Votes
    4 Posts
    1k Views
    PeterJonesP

    @Jonathan-Nich ,

    If you want to use @andrecool-68’s suggestion of adding the lexers to the context menu: in case it wasn’t clear, the arrow wasn’t meant to indicate that opening the Languages menu will give the popup in the screenshot – rather, he modified his right-click ContextMenu to include a Syntax Language folder which allows changing to his favorite list of languges. See this discussion, where we delve more deeply into how @andrecool-68 made that folder in the context menu. To make the edits, you will use Settings > Edit Popup ContextMenu to change the settings in contextMenu.xml. See the contextMenu docs here for more on the syntax.

    Alternately, you could set up a script similar to the ones described in this other thread. The post I linked contains a script which toggles between XML and HTML, which could be quickly adapted to work with CSS and PHP. Throughout the thread, there are also examples of using a macro to just set the language instead of toggling, and other similar concepts.

  • Automatically enable Monitoring

    4
    0 Votes
    4 Posts
    363 Views
    EkopalypseE

    @moon6969

    btw. there is this undocumented -z parameter
    which could be a trigger for your plugin.

  • How do I delete a line with a certain number in it

    10
    0 Votes
    10 Posts
    704 Views
    Terry RT

    @Squirtleshell said in How do I delete a line with a certain number in it:

    How would I keep the $100.0 and 100.0%

    Assuming everything is on separate lines then you can use the bookmark feature. This is available under the main menu option “Search”, then look for “Mark”.
    In the field just type 100\.0 (assuming search mode is regular expression, otherwise just 100.0 under “Normal” search mode as the . character has special meaning). So one mark operation with the “bookmark” option ticked will find both the $ and the % lines.
    Once the lines have been marked you should see a character at the start of each line marked, usually a blue circle. Now you can remove the non marked lines by using “Search”, “Bookmark” and then “Remove Unmarked Lines”.
    That completes the solution to your first problem.

    As the the second question, how to keep only the code at the start of each remaining line, this I’d do with a regular expression.
    So using the Replace function (as has been shown before) we have
    Find What:(?-s)^(\d+).+
    Replace With:\1
    Make sure “regular expression” selected for search mode, wrap around should be ticked. Click on the “Replace All” button.

    Terry

  • adding html formatting shortcuts (ctrl b for bold, ctrl i for em, etc.)

    3
    0 Votes
    3 Posts
    2k Views
    astrosofistaA

    @Kenneth-LaVoie said in adding html formatting shortcuts (ctrl b for bold, ctrl i for em, etc.):

    I want to be able to highlight a word and hit “control b” and have it put <strong>highlighted word</strong>

    Hi @Kenneth-LaVoie:

    In addition to the good advice from @Ekopalypse, you can also get what you want through a macro, to which a command can be assigned.

    See details in this thread: Update on option to <bold>selection</bold>?

  • Los saved file

    2
    0 Votes
    2 Posts
    165 Views
    EkopalypseE

    @akancha-poddar

    If it was saved, it should be available on the hard disk, right?
    If it was not saved, then depending on your installation,
    you may have the latest version in the backup directory.

  • Where does "Split Lines" actually split?

    4
    0 Votes
    4 Posts
    809 Views
    PeterJonesP

    @freeSeeker said in Where does "Split Lines" actually split?:

    Should I document that in the discussion thread?

    Yes, adding your experience to the bug report would help.

  • Create REN Batch File?

    4
    0 Votes
    4 Posts
    1k Views
    Ron BallR

    @guy038 This is awesome! Thank you so much! It worked perfectly.

  • RegEx command to delete string with variable numbers

    9
    0 Votes
    9 Posts
    656 Views
    Paul smithersP

    Hello, first of all thanks everyone for the help.

    I have tried the first proposal (?:/CreationDate|/M)(D:\d{14}+02’00’) from @Alan-kilborn and it works perfectly since i dont need the \x20 space char.

    For some reason if i use the other proposals, Acrobat refuse to import the modified fdf file because an unspecified error.

    Anyway, i resolved my problem now. I use this script to remove the autor name https://adobe.ly/3emVRkC and the search RegEx for the timestamp.

    Thanks again.

  • 0 Votes
    17 Posts
    3k Views
    Atelier TraductionA

    Thank you @donho, @guy038 and @Alan-Kilborn ;)

  • 0 Votes
    17 Posts
    13k Views
    guy038G

    Hi, @manoharreddyporeddy, and All,

    Continuation of the previous post !

    Now, we must determinate all the levels of these relative paths, found in a specific text. In other words, how many ../ syntaxes exist !

    We’ll use easy regexes, below, and simply click on the Count button, in the Find dialog

    •----•----------------------------------------------------------------------•--------------------------•----------------------------------------------------------------------•-----------------• | ST | SEARCH | REPLACEMENT | COMMENTS | NUMBER | •----•----------------------------------------------------------------------•--------------------------•----------------------------------------------------------------------•-----------------• | | \((\.\./){4,}\w | | 0 zone (../../../ /../xxxx/xxxx/xxxxxxx) | 0 Occurrence | | | | | | | | | \((\.\./){3}\w | | 16 zones (../../../xxxx/xxxxxxxx) => Future use of QAUNTIFIER {3} | 16 Occurrences | | | | | | | | 14 | \((\.\./){2}\w | | 0 zone (../../xxxx/xxxx/xxxxxx) => | 0 Occurrence | | | | | | | | | \((\.\./){1}\w | | 6 zones (../xxxx/xxxx/xxxxxxxxx) => Future use of QAUNTIFIER {1} | 6 Occurrences | | | | | | | | | \.md\(\w | | 33 zones (xxxx/xxxx/xxxxxxxxxxxx) => Future use of QAUNTIFIER {0} | 33 Occurrences | •----•----------------------------------------------------------------------•--------------------------•----------------------------------------------------------------------•-----------------•

    From the table, above, we deduce that, in your text, only relative paths beginning with (../../../ or (../ and, of course, some without any part ../, occur

    So, we’re going to reconstitute all the absolute paths, in reverse order. That is to say, beginning with relative paths containing (../../../xxxx/yyyy/zzzz/name.ext, then with (../xxxx/yyyy/zzzz/name.ext and, finally, simple forms (xxxx/yyyy/zzzz/name.ext

    The number of sections ../ are indicated in the quantifier {#}, at two locations for each regex

    Note that each regex dot char ( . ), below, has been replaced with the [^()[] syntax, which represents any single char, different from any parenthesis character ( and ) and from an opening square bracket [. Indeed, one must plan the possibility of several links in a single line and/or possible other block(s) of parentheses, eventually nested !

    •----•----------------------------------------------------------------------•--------------------------•----------------------------------------------------------------------•-----------------• | ST | SEARCH | REPLACEMENT | COMMENTS | NUMBER | •----•----------------------------------------------------------------------•--------------------------•----------------------------------------------------------------------•-----------------• | 15 | (?-si)\](http[^()[]+/)([^()[]+?/){3}[^()[]*\((\.\./){3}([^()[]+)\) | ]\x20\(\x20\1\4\x20\) | RELATIVE links (../../../xxxx/xxxxx) are changed as ABSOLUTE links | 16 Occurrences | | | | | | | | 16 | (?-si)\](http[^()[]+/)([^()[]+?/){2}[^()[]*\((\.\./){2}([^()[]+)\) | ]\x20\(\x20\1\4\x20\) | RELATIVE links (../../xxxxx/xxxxxxx) are changed as ABSOLUTE links | 0 Occurrence | | | | | | | | 17 | (?-si)\](http[^()[]+/)([^()[]+?/){1}[^()[]*\((\.\./){1}([^()[]+)\) | ]\x20\(\x20\1\4\x20\) | RELATIVE links (../xxxx/xxxx/xxxxxx) are changed as ABSOLUTE links | 6 Occurrences | | | | | | | | 18 | (?-si)\](http[^()[]+/)([^()[]+?/){0}[^()[]*\((\.\./){0}([^()[]+)\) | ]\x20\(\x20\1\4\x20\) | RELATIVE links (xxxx/xxxx/xxxxxxxxx) are changed as ABSOLUTE links | 33 Occurrences | •----•----------------------------------------------------------------------•--------------------------•----------------------------------------------------------------------•-----------------•

    Finally, if occurrences were found, at step 10, we slightly modify the output of the composite links [![.....] ( ..... )] ( ..... ), again, for readability :

    •----•----------------------------------------------------------------------•--------------------------•----------------------------------------------------------------------•-----------------• | ST | SEARCH | REPLACEMENT | COMMENTS | NUMBER | •----•----------------------------------------------------------------------•--------------------------•----------------------------------------------------------------------•-----------------• | 19 | (?-si)\[(!\[.+?]\x20\(\x20http.+?\))\] | \1\x20- | CHANGE [![....] ( .... )] ( .... ) as ![....] ( .... ) - ( .... ) | 0 Occurrence | •----•----------------------------------------------------------------------•--------------------------•----------------------------------------------------------------------•-----------------•

    To end, some simple tasks remain to do :

    You may need to remove or add a few blank lines for a better presentation

    You may delete all trailing blank characters

    In few cases, some numbered markdown lists are still shown as :

    1. bla blah 1. bla blah 1. bla blah

    Simply, renumber these lines, as usual :

    1. bla blah 2. bla blah 3. bla blah

    So, in order to recapitulate the links’s management :

    The syntax [Text](Absolute address) has been changed into [Text] ( Absolute address )

    The syntax ![Text](Address to xxxxx.png) has been changed into ![Text] ( Absolute address to xxxxx.png )

    The syntax [Text](Address to xxxxx.md) has been changed into [Text] ( Absolute Address to xxxxx.md )

    The syntax [![Text](Address to xxxx.png)](Address to xxxxx.md) has been changed into [Text] ( Absolute address to xxxxx.png ) - ( Absolute address to xxxxx.md )

    The syntax [!INCLUDE [Text](Address to xxxxx.md)] has been changed into [INCLUDE] ( Absolute address to xxxxx.md )

    IMPORTANT :

    I preferred to keep the alternate text of the links between square brackets for readability => [alternate text]

    Note that all the links, related to a picture, have an ! symbol before the alternate text

    I also kept all the absolute paths between parentheses, separated from the [alternate text] part by one space character

    However, after tests, I realized that in order that a link, between parentheses, is fully functional, you must surround the address with space chars. So, the final syntax used is ( https://....../name.ext )

    All links are functional but the two links, beginning with (/xxx, at lines 43 and 271 of the initial text

    May be, these links, below, about Markdown syntax, could be valuable :

    On GitHub

    https://help.github.com/en/github/writing-on-github/basic-writing-and-formatting-syntax

    https://github.github.com/gfm/

    On Window Azure

    https://github.com/Huachao/azure-content/blob/master/contributor-guide/custom-markdown-extensions.md

    Best Regards,

    guy038

    P.S. : I also tested the raw pages, from these two links. This helped me to identify some special cases ;-))

    https://github.com/MicrosoftDocs/azure-devops-docs/blob/master/docs/organizations/settings/show-bugs-on-backlog.md

    https://github.com/MicrosoftDocs/azure-devops-docs/blob/master/docs/organizations/settings/work/customize-process.md

  • how-to-change-date-format-from-from-mm-dd-YYYY -to-dd-mm-YYYY

    14
    1 Votes
    14 Posts
    5k Views
    Lorenzo AtomL

    @Ekopalypse said in how-to-change-date-format-from-from-mm-dd-YYYY -to-dd-mm-YYYY:

    $2, $3 and $1 refer to the respective groups
    captured by (\d{4})/(\d{1,2})/(\d{1,2})
    The () is what makes a group, so $1
    refers to what has matched by (\d{4}), $2 the next
    group and $3 the last group.
    Rearrange the $X in $2/$3/$1 and you will see how it will change.

    Was REALLY a pleasure… thanks really …REALLY Appreciate!

  • Start new line indented

    3
    0 Votes
    3 Posts
    785 Views
    Ken BohlK

    Thank you!

  • How to change the color of the toolbar in Notepad ++?

    18
    0 Votes
    18 Posts
    2k Views
    Oreshek qqO

    All people are different)
    Thank you, goodbye

  • NEW Language Req: HL7 reader???

    8
    0 Votes
    8 Posts
    4k Views
    Michael VincentM

    @Michael-Vincent said in NEW Language Req: HL7 reader???:

    I can’t seem to find a code repository for the Notepad++ plugin, but here is his Github with other work

    @alarose20

    Looks like hes’ been on this community:
    https://community.notepad-plus-plus.org/user/grahame-grieve

    but not since 2018.

    Cheers.

  • how to make baidu wifi in win7

    1
    -3 Votes
    1 Posts
    131 Views
    No one has replied
  • Adding color picker plugin

    3
    0 Votes
    3 Posts
    1k Views
    Alan KilbornA

    @Dron said in Adding color picker plugin:

    i tried all steps i see on google to do it

    What are the dates on the steps?
    Probably a bit ago.

    Notepad++ has changed.
    You now need to put a plugin in a folder with its same name:
    e.g.
    ...\plugins\XXX\XXX.dll

    Or better yet, use Plugins Admin
    NOT Plugin Manager as you are likely to see in dated internet posts.

  • Help with generating clickable links or something of that sort

    17
    0 Votes
    17 Posts
    915 Views
    EkopalypseE

    @jakima

    Yes, it must start with <space><space>File<space>" to be identified as an “linkeable” string
    and then it reads the rest of that line to see what kind of informations are available.