开发者

Inserting a page break character in Notepad++

In UltraEdit, inserting a page break character can be done by using your assigned keyboard shortcut (mine i开发者_JS百科s Ctrl + Enter). UltraEdit will render a nice horizontal rule to imply a page break.

How can I do the same thing in Notepad++?


There is no support for this in Notepad++ as far as I know, mainly because standard text files do not support them.

I haven't used UltraEdit myself, but looking at the documentation it uses page breaks mainly to help with printing. Printing in Notepad++ is a lot more basic, again another reason for no page breaks.

Update

I've just checked the Notepad++ wiki and found the following http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Printing_And_Exporting

Unsupported print features The following are not supported as of version 5.6.8:

  • Print all opened files
  • Insert a page break (you can try inserting form feed characters, but most modern printers will not act upon it.

I've just tried adding form feed (ASCII code decimal 12) and get a form feed control character added, not a line so I'm guessing you're out of luck.


This is actually quite easy to do in Notepad++. Go to Edit / Character Panel. This will open "ASCII insertion panel" where you can simply double click desired character, in this case 12 (Form feed).


If it's just a regular text file, try this (it works for me). Go to command prompt. Type edit filename.txt. Control + P, then Control + L. This will insert a page break symbol . However, you won't see it in Notepad but it's there. To check this, go to command prompt and edit your text file again and you will see where you inserted the symbol.


The only 'page break' we could come up for our printer was to highlight the text to be printed, click on menu bar File/Print and then on printer menu click on PageRange/Selection, then Print.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜