• <Style> tag

    5
    0 Votes
    5 Posts
    3k Views
    Ron TarrantR

    Okay, thanks, Claudia. I’ll look into it at that end.

  • Can I restore my memo contents in Notepad++?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Seong-Joon–Kim

    if the file is still there but only contains NULs then I don’t think you can restore it from this file.
    Your only chance would be to find a earlier backup, but only if this was set initially, of course.

    Cheers
    Claudia

  • 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
    836 Views
    No one has replied
  • 0 Votes
    1 Posts
    987 Views
    No one has replied
  • Missing Files on Session Restore

    Locked
    1
    0 Votes
    1 Posts
    996 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
    10k 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