How to remove styling for text files in Notepad++
7,950
Run it from the command-line as such:
notepad++ -ltext [filename]
Or from the menu: Language, N, Normal Text.
That's lower-case L in "-ltext
" by the way.
Update: To make it work by double-clicking on the file in Windows Explorer, put the above in a batch file as such (call the file, say, C:\OpenTxt.bat
):
C:\full\path\to\notepad++ -ltext %1
Then in Windows Explorer, right-click on any .txt file, choose Open With
then Choose default program
, Browse
, choose your C:\OpenTxt.bat
and check Always use the selected program to open this kind of file. Then OK.
Related videos on Youtube
Author by
pelms
Updated on September 18, 2022Comments
-
pelms over 1 year
If I open a text file in Notepad++ it defaults to formatting some elements such as numbers, text between apostrophes, backslashes etc.
How to I tell N++ to display .txt files with none of this formatting?
-
pelms about 8 years*text files (not test files as originally titled)
-
DavidPostill about 8 yearsHmm. For me
.txt
files open without any special formatting ...
-
-
pelms about 8 yearsThanks @JimB. I was really looking for a way to set the styling for all .txt files when they're opened with a double click without having to run a command each time though