Save file with Style Token in Notepad++

谁说胖子不能爱 提交于 2021-02-18 22:33:51

问题


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.


回答1:


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).



来源:https://stackoverflow.com/questions/38462432/save-file-with-style-token-in-notepad

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!