Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Save file with Style Token in Notepad++

Tags:

notepad++

I am trying to save a file with some highlighted text in notepad++.

But after closing the file and on reopening it, the highlighted text disappears.

Is there a way to persist these style tokens even after closing the file.

like image 990
User1234 Avatar asked Jul 19 '16 15:07

User1234


People also ask

How do I save a style token in Notepad++?

Whatever formatting is applied (like the highlighting) is not a property of the text, it's the way the editor decides to deal with it. The only thing that you can preserve after saving a file and closing Notepad++ is bookmarks (Ctrl+F2).

How do you highlight and save in notepad?

If you want to individually highlight files, hold down the Ctrl on the keyboard and while still holding the Ctrl , single-click each file you want to highlight.

How do I add a style to Notepad++?

Open your Notepad++ and select 'Settings' on the menu bar and then go to 'Style Configurator. ' Select downloaded theme from the dropdown menu. Click on Save and Close.

How do I save Notepad data?

Start Notepad ++, click on "Settings" > "Preference". Step 2. Click "Backup" on the window, and find the Notepad ++ unsaved files location in the Backup path. Note: To prevent Notepad ++ files from losing again, you can check "Remember current session for next launch" and "Enable session snapshot and periodic backup".


1 Answers

No, Notepad++ only deals with text, without formatting. Whatever formatting is applied (like the highlighting) is not a property of the text, it's the way the editor decides to deal with it.

The only thing that you can preserve after saving a file and closing Notepad++ is bookmarks (Ctrl+F2). This is because bookmarks are saved by Notepad++ to a special file. This only works if you reopen the same editor - if you move the file to another pc and open it there, the bookmarks will be lost.

To apply some formatting that is saved into the file, you must change the program and format. What you want is something like .doc (Microsoft Word), or even .rtf (Wordpad). Otherwise, you have to do something like HTML, but it is not WYSIWYG, that is, to highlight text you can't simply highlight it in your editor and save it (at least using classic, non-specialized tools).

like image 82
Fabio says Reinstate Monica Avatar answered Oct 17 '22 13:10

Fabio says Reinstate Monica