• Problems with installation on mac

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Polly-wants-a-cracker

    you need to use something like wine in order
    to have notepad++ running on a Mac.

    Cheers
    Claudia

  • Extra GREY bar remove

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Scott SumnerS

    Not sure this is what you’re talking about, but maybe you want to untick the View (menu) -> Show Symbol -> Show Indent Guide

  • Cache Unsaved Docs

    Locked
    2
    0 Votes
    2 Posts
    4k Views
    Scott SumnerS

    @Sharlikran

    I don’t want to always save unsaved documents,

    To get this behavior, you need to have the following two checkboxes TICKED :

    Remember current session for next launch Enable session snapshot and periodic backup

    in Settings (menu) -> Preferences… -> Backup (box on left) -> Session snapshot and periodic backup (box in middle/top)

  • Search for a string replacing a character and delete

    Locked
    2
  • Header like in word

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Tanja-Corell

    Short answer, no.
    A “standard” text file doesn’t contain any formatting information,
    it only contains the text. Npp cannot really be used as a Word-Clone if formatting is necessary.

    Cheers
    Claudia

  • How to: {{Moustache}} code highlighting for Notepad++

    5
    0 Votes
    5 Posts
    5k Views
    Gogo NeatzaG

    RegEx Helper as a plugin can offer some help (assuming that RegEx Helper is already installed):

    Open your file in Notepad++
    Set the language to Php
    Launch the plugin using Ctrl+F12
    Type in the “Regular Expression” window: ({{)|(}})
    Turn on the highlighting using ‘Mark’ button.

    Tested using this Moustache template:
    <strong>Hello, {{firstname}}</strong><br>
    <p>You are visitor number {{visitorNumber}}.</p>

  • Find & Replace issues

    19
    0 Votes
    19 Posts
    13k Views
    guy038G

    Hello, @scott-sumner and All,

    I’ve studied the general case of searching a specific character, ONLY IF, located inside a range of characters with delimiters.

    Now, two cases are possible :

    Case A : an area with a same starting and ending character, as, for instance, '.....' or "....."

    Case B : an area with a different starting and ending character, as, for instance, (.....), [.....], {.....} or <.....>

    Notes :

    For our discussion, we are supposed to look for the colon character

    For case A, I chose the double quotes delimiter ", as common boundary

    For case B, I chose the start delimiter < and the end delimiter >

    Let’s begin with the easier form !

    Case B : A possible regex would be :

    SEARCH :(?=[^<\r\n]*>)

    REPLACE Any string or character, even EMPTY

    Note that this regex looks for a colon character, ONLY IF followed by a range, possibly empty, of characters, different from the first delimiter < and from the EOL characters \r and \n , till the ending delimiter >

    On the test example, below, the regex finds all colon characters, located inside the <.....> areas exclusively ( the ones which are underlined ) Fine !

    1:23:<This:is a: tiny>text:to :see<if :my :logic:>is: correct:<I: hope:that>: all: will:be<::fine,: indeed>: ! :<:>78:9 ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯¯ ¯ ¯

    Now, in case A, the annoying thing is that it’s impossible to distinguish the two delimiters ! So, we’re going to cheat a bit ! First, we’ll replace, for instance, any area "....." by an oriented area as, for instance, #"....."@. Of course, these new boundaries must be absent from the present contents of the file !

    So, assuming the original text :

    1:23:"This:is a: small"text:to :see"if :my :logic:"is: correct:"I: hope:that": all: will:be"::fine,: indeed": ! :":"78:9

    The simple S/R :

    SEARCH ".*?"

    REPLACE #$0@

    would get the following text :

    1:23:#"This:is a: small"@text:to :see#"if :my :logic:"@is: correct:#"I: hope:that"@: all: will:be#"::fine,: indeed"@: ! :#":"@78:9

    Accordingly, the correct regex becomes :

    SEARCH :(?=[^#\r\n]*@)

    REPLACE Any string or character, even EMPTY

    Again, only the colons, inside the areas, which are underlined, are matched by the regex !

    1:23:#"This:is a: small"@text:to :see#"if :my :logic:"@is: correct:#"I: hope:that"@: all: will:be#"::fine,: indeed"@: ! :#":"@78:9 ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯¯ ¯ ¯

    To end with, use the simple regex :

    SEARCH #|@

    REPLACE Empty

    in order to get the original areas "....."

    Et voilà !

    Cheers,

    guy038

  • 0 Votes
    2 Posts
    3k Views
    Scott SumnerS

    @vanity-plume

    It’s kind of a cheesy solution, but you could approximate that functionality by following this advice: https://notepad-plus-plus.org/community/topic/14270/split-screen-view

  • Add text to beginning of line changes the content

    Locked
    6
    0 Votes
    6 Posts
    3k Views
    Scott SumnerS

    Slight tweak because \R only works in the Find-what zone, so if the intended destination for the escaped text is to be the Replace-with zone, the earlier wouldn’t work.

    Revised Replace-with zone: \\(?1\1:r\\n)

    Note that the revision is Windows line-ending (CRLF) specific, but this shouldn’t be much of an issue.

  • Compare copy added/removed lines

    Locked
    2
    0 Votes
    2 Posts
    5k Views
    pnedevP

    You need to do that manually - the same way you do it when editing files with Notepad++.
    Select the line and copy it, then go to the other view and paste it.
    That’s it.

  • Notepad++ update behaviour

    Locked
    1
    0 Votes
    1 Posts
    830 Views
    No one has replied
  • 0 Votes
    1 Posts
    983 Views
    No one has replied
  • Missing Files on Session Restore

    Locked
    1
    0 Votes
    1 Posts
    990 Views
    No one has replied
  • Help With Multi Replace/Paste Text Lines.

    Locked
    8
    0 Votes
    8 Posts
    4k Views
    Black YuziaB

    @Claudia-Frank Oh, thanks. I Get what I want. Thanks.

  • 0 Votes
    17 Posts
    9k Views
    Scott SumnerS

    @guy038

    Thanks…what confused me was that it sounded like you were saying that tabstops were always 4 columns…your most-recent post clears that up.

  • Cyrillic UCase to Lcase in the middle and end of words

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    MrSimurqM

    guy038, thanks for your prompt and plain reply! :))

    I just can hope that this issue will be solved asap…

    As a temporary working solution, I just S/R the above capitals, which in fact are vowels only, one by one. Eight in total, not that difficult… So, my Replace with regex for Э -> э looks like: \1э\3

    Thanks!

  • Looker lookml Syntax Highlighting

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • I've lost my all of my text

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Multiword highlight

    7
    0 Votes
    7 Posts
    3k Views
    Scott SumnerS

    @Vini-Dope

    Well, if you can’t share it globally you probably shouldn’t share it with me.

    I made a much bigger dataset (100000 lines of random text) and was able to duplicate your bad result (all text selected after the Mark operation). To be honest I don’t know what is going on with that…maybe it is just “too much” for the regex engine…

    Here’s something else you can try. Take your word list and replace all of the line endings between the words with the vertical bar: |

    You can do this by searching the word list for \R and replacing with |– regular expression search of course.

    Thus you’ll end up with something like this: Xxxxxxxx|Zzzzzzzz|Ccccccc|Vvvvvvv|Bbbbbb|Nnnnnn

    Take that long string and copy and paste it into the Find-what zone and do a Mark (or a Find) as described in Steps 2 and 3 above. This should find your words in your large document.

    Assuming your words-to-find average 10 characters in length, you can in theory use this technique on roughly 200 words (the limit of the Find-what zone is 2046 characters. I did not try that many with my experiment, but in theory at least…

  • Insertion of the leading zeros

    Locked
    3
    0 Votes
    3 Posts
    5k Views
    AndyOldShoeA

    Brilliantly, it works! Thank you so much)