Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I view hidden characters in Notepad++?

Tags:

notepad++

I have a string that has been giving some of my code fits of rage and its got "extra" characters in it that I only stumbled upon by using the arrow keys to go through it. I noticed that the cursor stayed in place in certain areas for an extra keystroke of the arrow key. Using View >Show Symbols > Show All Characters still didnt seem to indicate anything there. What kind of character could be there and is there a plugin for it?

like image 990
bitshift Avatar asked Aug 31 '16 21:08

bitshift


People also ask

How do you show hidden characters?

Pressing " Ctrl+Shift+W " (or the assigned keyboard shortcut) will now invoke the " View | Editor | Hidden Characters " main menu option.

How do you open symbols in notepad?

To insert an ASCII character, press and hold down ALT while typing the character code. For example, to insert the degree (º) symbol, press and hold down ALT while typing 0176 on the numeric keypad. You must use the numeric keypad to type the numbers, and not the keyboard.

How do I find Unicode characters in notepad?

Notepad can manage text encoded in several formats such as ANSI, Unicode and UTF-8. Find these options by clicking the "Encoding" button on Notepad's Save As window. After creating or updating text in a document, you can select one of these encoding options in which to save the file.

How do you find non ascii characters in notepad?

In Notepad++, if you go to menu Search → Find characters in range → Non-ASCII Characters (128-255) you can then step through the document to each non-ASCII character. Be sure to tick off "Wrap around" if you want to loop in the document for all non-ASCII characters.


2 Answers

If you really want to get a raw look, check out the HEX-Editor Plugin (Check the Plugin Manager for it). You'll see the character codes for everything; even non-printable characters.

I use it, and have no issues on the newer versions of Notepad++.

like image 29
Sunny Patel Avatar answered Sep 20 '22 08:09

Sunny Patel


The simplest way is to use the menu:

View->Show Symbol->Show all characters

It will show Tabs and EOL characters.

Here is an example of a VBS script that announces the current hour being viewed in Notepad++ on Win7.

enter image description here

Note that it is clear I used spaces to do the indents - not Tabs.


This is the base script I used in the Q&A about how to make Windows announce the time at the top of each hour:

https://superuser.com/questions/1268702/how-to-make-windows-speak-the-time-at-the-top-of-the-hour/1268703#1268703

like image 144
SDsolar Avatar answered Sep 18 '22 08:09

SDsolar