• A little help please

    6
    0 Votes
    6 Posts
    348 Views
    Alan KilbornA

    @astrosofista said in A little help please:

    To take advantage of the “copy marked text” option you need v7.9.1.

    …or later!

  • Restore right margin word wrap as in 7.8.5

    18
    2 Votes
    18 Posts
    2k Views
    dinkumoilD

    @Alan-Kilborn

    Yes, I have seen this effect, too. It seems like character spacing is slightly smaller when DirectWrite rendering is activated. I tested some minutes ago with Npp v7.9.1 and saw that with DirectWrite the Scintilla window showed 85 characters and with standard rendering it showed 83 characters. In pixels the difference was 17 px.

    Here are screen shots from my test, captured with a screen magnifier:

    ca999e07-59f7-4bbe-a633-d6f651f7dfea-grafik.png

    561a4be7-53af-4fd8-b457-1b661f0b2804-grafik.png

    Unfortunately this issue causes the Horizontal Ruler plugin to draw an inaccurate ruler - Scintilla’s edge line is drawn at the correct position (after column 80) but the plugin’s ruler shows column number 88 at this postion:

    bf029625-d4bf-46a9-ac17-0b7af81c3344-grafik.png

  • BUG: Replace "In selection" greyed out

    7
    1 Votes
    7 Posts
    4k Views
    mkupperM

    Here are some more comments that may help with understanding and debugging what’s happening.

    The updating of the ‘In selection’ area seems to happen well after the Find/replace dialog box is painted.

    In step one where the cursor is in a blank area of the file and no text is selected do Ctrl-H and watch the ‘In selection’ area. If it shows a black box and ‘In selection’ in black then press Esc and then Ctrl-H again while continuing to watch the ‘In selection’ area. Eventually you will see black box and ‘In selection’ in black pop up and then quickly change to gray. It looks like the words ‘In selection’ go gray first and then the box.

    Once you have a gray box and ‘In selection’ then press Esc to close the dialog box and select some text. The size of the selected area does not matter. It can be one character or the entire file. The method of selection does not seem to matter. You can use the mouse or keyboard. Now do Ctrl-H. You will see that ‘In selection’ and its box are grayed out. This is the random grayness people have been seeing. Press Esc to close the dialog box and Ctrl-H again while watching where ‘In selection’ will be painted. You should see the ‘In selection’ box being painted in black shortly after the dialog box has been opened. It’s possible both the box and the words ‘In selection’ were in gray but on my machine the repainting to black is too fast for me to confirm it’s all gray and then repainted. I am seeing the black box painted after the dialog box is up.

    Also, while I have been switching to the ‘Find’ tab and back to ‘Replace’ to fix an undesired grayed out ‘In selection’ I found that it does not matter which tab of the dialog box you use. You can switch to ‘Find in Files’, which does not have an ‘In selection’ field and back or you can switch to ‘Mark’ and back. When switching to ‘Find’ and ‘Mark’ you’ll see that ‘In selection’ is in black.

    This issue can also be reproduced using Ctrl-F for Find or Ctrl-M for Mark. The buggy behavior with the grayed ‘In selection’ is the same as with using Ctrl-H for Replace.

  • Fake site "not t epad-plus-plus.org"

    11
    5 Votes
    11 Posts
    1k Views
    Alan KilbornA

    @donho said in Fake site "not t epad-plus-plus.org":

    https://twitter.com/Notepad_plus/status/1347757857056423936

    At that twitter link @donho has 2 links where we can go to report the bad nottepad site. If a lot of people follow the links and do it, I’d think it would help.

  • disable automatic line wrap

    4
    0 Votes
    4 Posts
    3k Views
    PeterJonesP

    @When-you-read-the-comments-I-will-be-there

    … or clicking the Word Wrap toolbar icon: d0dbf978-400a-4dfb-aeb5-217810bc2f54-image.png

  • Copy and replace text question

    2
    0 Votes
    2 Posts
    180 Views
    Terry RT

    @Mike-Casey said in Copy and replace text question:

    Is there a way to save only the data after the the colon in my example?

    Possibly. If this is a complete line then you would use a regular expression to capture from start of line until the first colon found. Then all these characters would be deleted.

    To give us a better understanding can you present complete lines in your next post. After inserting them, select them and click on the </> button above the posting window. This encapsulates the text within a black box and prevents the posting engine from possibly altering the text as it tries to format the post.

    Terry

  • 0 Votes
    5 Posts
    291 Views
    R YR

    @PeterJones That is difficult to find a suitable font to show the special character.

  • 0 Votes
    5 Posts
    2k Views
    Terry RT

    @R-k said in Keep 1st,4th,8th,12th.....so on lines, multiple of 4 and delete rest.:

    When i run macros multiple files, i get empty files. It delets every thing. But works file on single text file.

    I actually came up with another idea. When used with the “Find In Files” function it should work.
    You would record the following in the macro.

    Ctrl + Home keys (takes you to the first line) Line down by using down arrow, cursor should be in the first position. Add a space and a carriage return/line feed Use the “Find In Files” function with
    Find What:(?-s)^(.+\R){3}(.+\R)
    Replace With:\2
    This selects groups of 4 lines and leaves just the last one. As the first line is now followed by a blank line it’s the blank line that is deleted, not the first line. As nothing has been mentioned with regards any remaining lines (less than 4) this step is yet to be determined. It could be anther regex for when 3 lines exist, or 2 lines, or even just 1 line, returning how many required and deleting the others.

    So for your next question, likely you get empty files as using ctrl-tab cycles through the open files within Notepad++. f you don’t close (and save) that tab you will find it cycles back to that tab again I think and performs the same operation again. Although I’d suggest it would leave just 1 line in each tab, yes?

    When recording a macro you select the function, then supply the regex. I think a better option would be to use the Find in Files function. This will work through files in 1 or more folders. The files don’t need to be opened in Notepad++. So you will need to create a new macro using that function, unless you are good at editing the macro, they are fiendish to do so.

    Terry

  • "Save All" option not working

    2
    0 Votes
    2 Posts
    217 Views
    Alan KilbornA

    @soghjfik

    Can you walk us thru a series of steps you are doing (step by step, exactly; don’t generalize, don’t leave stuff out) so that we can understand better, and perhaps tell you where things are going wrong?

  • shortcuts.xml <Action> tag

    6
    0 Votes
    6 Posts
    1k Views
    prahladmifourP

    Hello,@SusiKette
    Please try this code, To shortcuts.xml <Action> tag.

    In Windows 7|8|10 C:\Users%username%\AppData\Roaming\Notepad++\shortcuts.xml

    Code:

    <NotepadPlus> <InternalCommands /> <Macros> <Macro name="Trim Trailing and save" Ctrl="no" Alt="yes" Shift="yes" Key="83"> <Action type="2" message="0" wParam="42024" lParam="0" sParam="" /> <Action type="2" message="0" wParam="41006" lParam="0" sParam="" /> </Macro> <Macro name="abc" Ctrl="no" Alt="no" Shift="no" Key="0"> <Action type="1" message="2170" wParam="0" lParam="0" sParam="a" /> <Action type="1" message="2170" wParam="0" lParam="0" sParam="b" /> <Action type="1" message="2170" wParam="0" lParam="0" sParam="c" /> </Macro> </Macros> <UserDefinedCommands>....

    I hope this code will be useful to you.
    Thank you.

  • Customizing Style Configuration

    2
    0 Votes
    2 Posts
    200 Views
    EkopalypseE

    The style configuration depends on the lexer you are using.
    So, to be able to give you some advice, may I ask you which lexer (aka language) you are using. HTML, Java, C# … ??

  • Yippee...

    1
    6 Votes
    1 Posts
    139 Views
    No one has replied
  • Issue printing files with Notepadd++

    4
    0 Votes
    4 Posts
    973 Views
    deus exD

    @Andreas-Neff

    As a workaround, try printing to a PDF-file instead. This way you have a WYSIWYG level of control, printing the generated PDF should give you the output result you are looking for.

  • Wish: Path in document switch

    3
    0 Votes
    3 Posts
    196 Views
    Lucio MenciL

    Thank you Alan
    I didn’t ever used it because it is a “popup” that has to be closed every choices. And it has some bugs: did not refresh well if there are more windows than the area contains (if there is the scrollbar, the sort doesn’t refresh well). Except this, I will learn to use windows window more and more. Assigned to a shortcut. Thank you.

  • "Compare" Plugin: Ignore lines or strings?

    1
    0 Votes
    1 Posts
    712 Views
    No one has replied
  • SRS Document

    4
    0 Votes
    4 Posts
    459 Views
    PeterJonesP

    @apantzar said in SRS Document:

    because I want to write SRS for a project that does not have one.

    That’s not what you said in your first post. But if that’s really the case, good for you.

    As I said, I don’t think such a document exists for Notepad++. Sorry

  • Selected text

    32
    0 Votes
    32 Posts
    2k Views
    Ruud SchmeitzR

    @Ruud-Schmeitz said in Selected text:

    So I’ve decided to go for this option :
    editor.setWhitespaceSize(1)
    editor.setWhitespaceFore(1,( 64, 64, 64))
    editor.setWhitespaceBack(1,(255,255,255))

    I hope that makes me happy .
    😀

    Actually it did not !

    Selecting the 8 lines of code results in :
    code - selected 01.png

    Because that’s not what I want , I deleted editor.setWhitespaceBack(1,(255,255,255)) in the startup.py file .

    The remaining PythonScript commands :
    editor.setWhitespaceSize(1)
    editor.setWhitespaceFore(1,( 64, 64, 64))

    make the selected lines of code look like :
    code - selected 02.png

    Now I’m happy .
    😄

  • Leave software far away from politics

    6
    0 Votes
    6 Posts
    2k Views
    Jinghe MaJ

    @Alan-Kilborn

    Thanks Alan. I have created a new one. Thanks again.

  • Add double quote on different words in notepad++

    6
    0 Votes
    6 Posts
    23k Views
    caryptC

    @PeterJones yes , thank you , the replace should have been “$1”\r\n at least , or i should have taken the \R into brackets in the search string , and added it into “$1”$2 . but i missed the concept that the whole search string gets replaced , if i dont instruct a rebuilding in replace . oops , my mind wasnt working .
    i am sorry @Aswin-Hadinata

  • Bit offtopic but ...

    1
    4 Votes
    1 Posts
    137 Views
    No one has replied