• Unneccesary Characters in .Out file

    Locked
    4
    0 Votes
    4 Posts
    1k Views
    PeterJonesP

    @Thirupathireddy-V ,

    The “?” of the little grey “COMPOSE ?” in the upper right of the post-editing window would take you to help for formatting (which includes how to embed an image)

    But I find that @Scott-Sumner’s help-with-markdown post is a much better introduction to the concepts. If you don’t have a tool to grab the screenshot – you do. In Windows, Alt-PrintScreen will grab a screenshot of the current window; you can then open mspaint.exe from the Win+R run menu; save it. In Windows 10, an alternative is the Snipping Tool: click on the Windows button on your taskbar, and type “Snipping”, then click “New”, then drag a box around the portion of your screen you want to snip; then save it. Once you have an image, you can upload to a free image-sharing site, like imgur.com – you don’t even need a login; then grab the URL to the image (in imgur, click on the image, then copy the Direct Link or Markdown Link) and embed it in the forum using code like ![Imgur](https://i.imgur.com/0Mon4gO.png) (if you grabbed the Markdown Link, you just need to add the exclamation point ! immediately before the copied link text) – this embedding technique is described in Scott’s help-with-markdown post.

    A screenshot will be useful to confirm… but as a guess:

    Given that you said it’s “showing me unnecessary characters (letters are highlighted)”, I am assuming you are seeing some letters that are smaller than others with a background; some of the letters I would guess you are seeing are CR and/or LF at the end of lines.

    I don’t know what the .out file is (other than a.out from a linux compiler… and if you’re trying to read that with a text editor, you really don’t understand what you’re doing – see #2 below), so I don’t know whether it’s a binary or partially-binary format, but if it is, there may be many other binary characters, which may show up as other 2-3 letter sets in the same background-box, such as NULL, SOH, STX, … All of those are indicative of non-textual data in the file you are looking at.

    If this is what you’re seeing, then either

    If it is a plaintext (or mostly plaintext) file, then you probably have a Show Symbol option turned on. Go to View menu > Show Symbol: one of “Show End of Line” or “Show All Characters” is probably enabled. If it is enabled, click on the selected option again to turn it off.

    It’s primarily a binary file, which means that some or most of the information in the file is encoded (or compressed or encrypted) in some way other than text. Notepad++ is a text editor. It will show you any text that happens to be unencoded (or any encoded data that happens to look like text, but isn’t really), but it’s not built to decode arbitrary data. Some more information can be found in this FAQ Desk post (which focuses on PDF and DOCX, but conceptually applies to any binary-encoded file, whether it’s a word processing file, a database or other data file, an image, or an executable or library file, or anything else that’s not a plain-text file)

    But again, the best confirmation will be a screenshot.

  • 0 Votes
    3 Posts
    1k Views
    Scott SumnerS

    @MD-Computer-Center

    IMO what you really want to do is create a new VB6 project and add the Scintilla editing component to it. Maybe not directly but as some sort of “embedded control” (IDK as it has been a LOOONG time since I’ve considered VB6 for anything!).

    But Scintilla is and has always been the core of Notepad++, and I imagine N++ v1.0 is very thin on features beyond basic text editing (which is controlled by Scintilla). So looking at the N++ 1.0 source code may not give you this big boost that you are thinking it will.

    Good luck!

  • Regex: Select all from row except

    Locked
    18
    0 Votes
    18 Posts
    5k Views
    Scott SumnerS

    So I think that first time regex question posters come here because they don’t know what else to do. They don’t (necessarily) know even what regular expressions are–they just know that they have a problem with data manipulation and don’t know how to solve it…but they hope Notepad++ can help them…AND IT CAN! So, yes, true, this is not a forum for regex, but these naive first-time posters certainly don’t know that; they can be excused.

    And I think it is fine to help them out, and give them a boost (pun fully intended) into learning about the Wonderful World of Regular Expressions. But I also think it is fair, if the same people keep coming back for more answers, over and over, that we ask them what they’ve tried first, to show their learning or at least how they are thinking about a problem…instead of just handing out answers.

    So, no, @guy038, I don’t think you should slow down with the regexes. You have to be you. :-)

  • Notepad ++ crash on close

    Locked
    2
    0 Votes
    2 Posts
    680 Views
    chcgC

    Could you check https://notepad-plus-plus.org/community/topic/15739/faq-desk-request-for-help-without-sufficient-information-to-help-you and provide the N++ Debug info.

    First idea would be that a plugin is causing the issue as no such issue is reported at https://notepad-plus-plus.org/community/topic/16468/notepad-7-5-9-release

  • right click launch npp as administrator

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    patrickdrdP

    well, the answer was in npp community, not google exactly:
    https://notepad-plus-plus.org/community/topic/6929/windows-10-shell-context-menu-error/5

  • Cursor not aligned on high-res screen

    Locked
    1
    0 Votes
    1 Posts
    501 Views
    No one has replied
  • "remember last used directory" doesn't work?

    Locked
    9
    0 Votes
    9 Posts
    4k Views
    PeterJonesP

    @patrickdrd

    Windows has a builtin way to specify the starting directory for any shortcut you run – and I am assuming that since you claim to be loading a blank NPP window, you’re loading from a shortcut instead of from a Right Click menu.

    To change the Windows default directory, Right Click on your shortcut, select Properties (‡), go to the Start In field, and enter the directory you’d like to be your default

    ‡: For a normal shortcut, like on your desktop, you just have to select Properties. If the shortcut is pinned to your taskbar (like it is for me), RClick, then RClick on “notepad++” near the bottom of the menu, then select Properties. If it’s in your Start Menu (either pinned to the quick start area, or if you go down to N > Notepad++), then RClick on the icon, select More, select Open File Location; this should open Windows Explorer in the directory where that shortcut actually lives. In that Windows Explorer, you can RClick on Notepad++ shortcut and select the Properties, as above.

  • delete both duplicates regexp macro?

    25
    0 Votes
    25 Posts
    8k Views
    Scott SumnerS

    @guy038,

    Do you have more to say on this topic? I’m interested…

  • Delete columns using ++ notepad

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    favio rodiF

    @PeterJones , thank you very much Mr. PeterJones

  • Run the 32-bit and 64-bit versions side by side

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    PeterJonesP

    I, too, think portable for one is probably your best choice.

    If you want to primarily use 32-bit, but start experimenting with 64-bit, then I would leave 32-bit installed, and run 64-bit from portable. If you want to primarily use 64-bit, but want 32-bit available for non-64b plugins, then install 64-bit, check registry settings (64bit on Win10 doesn’t always associate properly: see this thread and others it references), then put 32-bit into a portable directory. This should keep all your 64-bit settings the same as you used to have on 32-bit.

    After making the portable directory, you’ll then need to install plugins for your portable (as @chcg said). Also, if you want the same settings, you can copy the XML configuration files from %AppData%\Notepad++ to the portable directory.

    Good luck.

  • Notepad++ Not Working

    Locked
    3
    0 Votes
    3 Posts
    815 Views
    chcgC

    Which version of N++ are you using?
    7.5.9?
    Installation for all users or per user?
    See also https://notepad-plus-plus.org/community/topic/15739/faq-desk-request-for-help-without-sufficient-information-to-help-you

  • delete text before | and then, using notepad

    Locked
    6
    0 Votes
    6 Posts
    2k Views
    peterfrankw3P

    @guy038 , thanks you

  • Single Quote string for Python

    Locked
    4
    0 Votes
    4 Posts
    1k Views
    Richard HawR

    Thanks! MINDBLOWN :O :O :O

  • BUG? Save As - paste folder (Path) Error, but when ignored works

    Locked
    3
    0 Votes
    3 Posts
    810 Views
    Scott SumnerS

    @Guido-Brinkman

    And please search for this first in the reported bugs, before creating a new one. I’m sure it already exists…and you can add any new info to an existing issue if you think it is deficient.

  • Missing Unicode Characters in Notepad++

    7
    1 Votes
    7 Posts
    3k Views
    Tina BicenoT

    I am using the latest Notepad++. I use VS 2017 for C/C++, notepad++ for multiple things.

  • How can I hide the horizontal lines that appear when I fold a block?

    13
    2 Votes
    13 Posts
    5k Views
    rodrigodesalvobrazR

    Very good, thank you, now things work as I wanted. :-)

  • -1 Votes
    32 Posts
    75k Views
    Scott SumnerS

    @guy038 said:

    if we want to know…how many characters…the longest line of a file, simply use…the mathematical bissection/dichotomy method

    Well…that’s a whole lot of trial and error work. How about a little Pythonscript?:

    longest_line_length = 0 shortest_line_length = None def fel(line_contents, line_number, total_lines): global longest_line_length, shortest_line_length line_contents = line_contents.rstrip() # remove line-ending llc = len(line_contents) if llc > longest_line_length: longest_line_length = llc if shortest_line_length == None: shortest_line_length = llc if llc < shortest_line_length: shortest_line_length = llc editor.forEachLine(fel) notepad.messageBox('The longest line in the current file is {}; the shortest is {}.'.format(longest_line_length, shortest_line_length), 'INFO')

    When run it pops up a box with the results, for example:

    Imgur

  • functions list for Pascal language

    8
    0 Votes
    8 Posts
    5k Views
    dinkumoilD

    @Анатолий-Павлович said:

    Add already ready implementation of parser for pascal:

    I’m the author of the PR you mentioned. It is not a ready implementation. It works in some cases and in other cases it doesn’t. That’s the reason why I’ve closed this PR, I wasn’t able to get it production-ready and thus it should not make its way into a release of Notepad++. It would only lead to a huge amount of support/bug fixing requests.

    But maybe you are able to improve the parser, feel free to do that. If you decide to do so, be aware that you also have to provide Pascal source files for testing and verifying the parser. This is the new policy for releasing FunctionList parsers.

  • [Bug] Auto indent doesn't work when recording macro

    4
    0 Votes
    4 Posts
    947 Views
    Scott SumnerS

    @SanderBouwhuis

    Should I report this bug somewhere else?

    See here. IMPORTANT: Search to see if it already exists before creating something new.

  • Accent whith Autocompletion

    4
    0 Votes
    4 Posts
    1k Views
    RaphaelR

    I just edited the xml file and for some reason, now I have the strange characters back in the autocompletion. The header is still showing UTF-8, the xml file is encodeed itself in UTF-8.
    I have tried using the &-entities but they are shown as text