• Help with manually configuring theme

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Richard SteinbergR

    Never mind. I figured it out. XML tells you where in Style Configurator to find settings.

  • User-Defined Language: cannot make Extras2 work with Suffix1

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    PeterJonesP

    The difference is probably because 'b and 'd will have normal digits (0-1 or 0-9) both before and after the 'b or 'd, whereas 'h will also have letters after. And since UDL defines it as a suffix, not an infix, it gets confused once there’s a non-numeric after the suffix. You might try to define all the hex prefixes you generally use in your Verilog in the Prefix 2 entry:

    <Keywords name="Numbers, prefix2">1&apos;h 2&apos;h 3&apos;h 4&apos;h 5&apos;h 6&apos;h 7&apos;h 8&apos;h 12&apos;h 16&apos;h 32&apos;h 64&apos;h</Keywords>

    However, if you happened to have an 11-bit segment you tried to access as 11’h75A, but hadn’t included 11&apos;h in your prefix 2, it wouldn’t highlight for you.

    Is there a reason you aren’t using the built-in Verilog lexer? It defaults to Verilog for extensions v, sv, vh, and svh; I added vams (using Settings > Style Configurator > Verilog > User Ext).

    I’m not a huge user of Verilog and its variants, but in the times I have been editing such files, I haven’t noticed any significant deficiency. It properly highlights any bitness for hex, binary, and decimal that I’ve noticed, and the other syntax I’ve used has looked reasonable.

    If there are words that aren’t getting marked up using the Verilog lexer, you can use the Style Configurator to add custom words: both INSTRUCTION WORD and KEYWORD have a User-defined box for extending what gets highlighted.

  • Selected Text Surround with quotes

    Locked
    6
    0 Votes
    6 Posts
    11k Views
    Key7iK

    Thanks @Claudia-Frank for explaining. Macro is working fine now…
    And thanks @dail . yes. that is the one.

    Appreciated

  • Search and replace

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    Parpaluck209P

    @Helloiam-Thomas

    The easiest way, without regex:

    Select the bloc you wanna replace and press Ctrl+H. Npp fills the Find what box automatically, with the proper codes inserted (although invisible, unless you try Find in files first; the results panel will show the Find string with the \r\n codes inserted properly).

    Select the text to Replace with. Unfortunately, Notepad++ does NOT fill the box with the proper codes automatically. You need insert the \r\n codes at the end of each line manually.

    some text**\r\n**
    some other text**\r\n**
    Comments**\r\n**
    Comments**\r\n**
    \r\n
    (Value 1<)\r\n

    Go to the end of each line and press Delete (it deletes the EOL codes, LF or CRLF).

    It is a one line bloc now. Select the new bloc of text and paste it into the Replace with box:

    some text**\r\nsome other text\r\nComments\r\nComments\r\n****\r\n***(Value 1<)*\r\n

    Voilà!

  • How to show Emoji in npp?

    Locked
    2
    0 Votes
    2 Posts
    7k Views
    Claudia FrankC

    @hh-hh

    Fonts are part of the operating system, so try to find one which fits your needs and install it.
    Afterwards use Settings->Style Configurator or define an UDL and choose the font you installed.
    Never tried it myself, but I assume it should work.

    Cheers
    Claudia

  • langs.xml missing when starting notepad++ from batch script

    3
    0 Votes
    3 Posts
    2k Views
    johann woeckingerJ

    After some pausing & thinking i digged into the problem again and i think i was hit by https://github.com/notepad-plus-plus/notepad-plus-plus/issues/3088. After reinstalling with (or better “without” the dont-use-APPDATA-option) it works like a charm.
    Sorry for bothering you,
    br johann

  • UDL limitations -- what's the alternate for syntax highlighting?

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @fuhrmanator

    may I ask for what you need to define the blank lines?
    If I understand this correctly, it is only used to let the GIFT engine know when
    an new question starts.
    Even if it could be done, it doesn’t get visualized.

    What am I missing?

    Cheers
    Claudia

  • i want to copy same pregraph paragraph 5 time

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Jackson-Bruch

    for the sample data provided you could use a regular expression to search and replace
    Find what:

    (?s)G1 .*?G92 E0 ; reset extrusion distance\R

    and
    Replace with:

    $0$0$0$0$0

    This matches everything starting with G1 and ending with
    G92 E0 ; reset extrusion distance followed by an eol char (make sure
    you last line posted has this as well)

    5x $0 means 5 copies from what has matched.

    Cheers
    Claudia

  • open file shown in find results

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    jonhpJ

    thanks, the one thing I didn’t try. works great. jon

  • Regex matching two lines and results

    3
    0 Votes
    3 Posts
    5k Views
    iyxI

    Thanks a lot!!

    Works great.

    (“Bookmark line” need to be checked, but that’s obvious)

  • Problems with Plugin Manager

    3
    0 Votes
    3 Posts
    4k Views
    JDarthenayJ

    Sorry, I am watching my topics but I don’t see where I get any notification or mail… Thanks for trying to help me. (I don’t know what, I believe I already told you this somewhere…)

    I updated PM as you suggested, this solved my problem but I have another one. I try to install the TextFX plugin, but I get an error after clicking “Install”. Actually I get the same error when trying to add many plugins I tried to add: “Installation of xxxx failed.”

  • Macro for ANSI encoding

    Locked
    5
    0 Votes
    5 Posts
    3k Views
    Claudia FrankC

    @Nicole-Sigaud

    if you edit shorcuts.xml you need to restart npp to make it happen.
    In regards to the different action types you might want to take a look
    here
    .

    Cheers
    Claudia

  • Issue #3316 can anyone else reproduce.

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    RHscitechR

    Thanks for confirming.

  • Notepad++ no longer saves temp files

    5
    0 Votes
    5 Posts
    9k Views
    glennfromiowaG

    I’ve noticed that if you have Multi-Instance turned on, the Backup feature only works on the first instance opened. For additional instances, you need to save/backup the files manually. Is this the issue?

  • Remove language highlighting

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Jim DaileyJ

    @shravan2x
    Under the Language menu, look under “N” for “Normal Text”.

  • Is the Community search feature broken?

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    cipher-1024C

    I’d also add that the NodeBB site has a lot of reports about broken searches, but since we don’t know what search plugin this site uses, it’s hard to tell what’s going on. But I would agree with Jim, the site search is very broken. Searching “langs” in the title only, you get things like “links” or “long”. I’ll take a page from Claudia’s book and use a search engine, but that won’t help with random people coming here to search for issues and then promptly giving up and putting in duplicate posts.

  • First occurrence of series of words in file

    7
    0 Votes
    7 Posts
    5k Views
    guy038G

    Hi, @zeff-wheelock and @scott-sumner,

    Scott, your regexes are exact, of course ! In addition, searching for the last occurrence makes sense, as we want to know the final state of all these servers.

    However, I must miss something ! To my mind, we should search for the last line, with the word connected, for each server, ONLY IF a previous line, with the word disconnected, for the according server, has not been found !

    For instance, if we consider the part of the Zeff’s log, below :

    05/23/2017 05:04:09 AM SMTP Server: qwerty321f.domain.com (xxx.xxx.xxx.xxx) connected 05/23/2017 05:04:10 AM Router: Transferred 1 messages to SERVER004/DOMAIN via Notes 05/23/2017 05:04:10 AM SMTP Server: Message 0031D206 (…) received 05/23/2017 05:04:10 AM SMTP Server: qwerty321f.domain.com (xxx.xxx.xxx.xxx) disconnected. 1 message[s] received

    To my mind, it looks like, on 05/23/2017 05:04:10 AM, the server “qwerty321f” is disconnected. No ? Of course, I suppose that the string xxx.xxx.xxx.xxx, in the first and last line, just above, represents the same IPV4 address !

    Cheers,

    guy038

  • Convert to ANSI

    8
    0 Votes
    8 Posts
    76k Views
    Jim DaileyJ

    @Rafael-Lopes-Vivian

    I think part of what is in play here is that UTF-8 is the default encoding for an HTML-5 file.

    The characters that make up a “text” file are code points. A character encoding scheme maps the code points it understands into numbers that are stored in the file.

    UTF-8 and ISO-8859-1 are two different character encoding schemes. A file can technically be encoded in one or the other (or some other scheme entirely) but not in both.

    However, when a file contains only code points that are encoded identically by 2 or more encoding schemes, then, unless there is some special meta-data in the file to indicate which encoding scheme is being used, the “proper” scheme is not knowable from the file’s contents.

    UTF-8 is a variable-length encoding (the size of the number each code point is mapped to varies); ISO-8859-1 is a fixed length encoding (the size of the number each code point is mapped to is 1 byte).

    Since ISO-8859-1 represents each code point in a byte, it can only encode 256 code points, the first 256 code points of the Unicode character set. UTF-8 can be used to encode most (if not all) code points of the UNICODE character set.

    Code points 0 - 127 are encoded identically by the UTF-8 and ISO-8859-1 schemes. Code points 128 - 255 differ by becoming a 2-byte sequence with UTF-8 whereas they are single bytes with ISO-8859-1.

    So, if an ISO-8859-1 encoded file contains any code point from 128-255, then it will be a different size than a UTF-8 encoded file that contains the same code points.

  • Dot as separator

    2
    0 Votes
    2 Posts
    3k Views
    Claudia FrankC

    @Aleksei-Samov

    not sure if this is a possible solution but
    what if you define a delimiter with

    open=c4d.
    close=,

    and allow nesting with keywords and numbers and additional delimiters if needed?

    Cheers
    Claudia

  • Search results won't highlight hits

    10
    0 Votes
    10 Posts
    5k Views
    Claudia FrankC

    @Harry-Binswanger

    glad you solved it.

    Cheers
    Claudia