Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inserting a page break character in Notepad++

Tags:

notepad++

In UltraEdit, inserting a page break character can be done by using your assigned keyboard shortcut (mine is Ctrl + Enter). UltraEdit will render a nice horizontal rule to imply a page break.

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

like image 839
thenonhacker Avatar asked Mar 29 '10 14:03

thenonhacker


People also ask

How do I insert a page break in Notepad?

The one thing you cannot do in Notepad is insert a page break using the Alt + numeric key pad method. You can insert other characters such as 013 for a new line, but Notepad rejects Alt+012 as an illegal character. You can however copy it from an existing text document and paste it into Notepad.

What is the page break character?

Form feed is a page-breaking ASCII control character. It directs the printer to eject the current page and to continue printing at the top of another. Often, it will also cause a carriage return. The form feed character code is defined as 12 (0xC in hexadecimal), and may be represented as control+L or ^L .

What is FF character in Notepad?

FF is a form feed character, to replace it with newline do following : Select the FF , press Ctrl + H. Choose Extended Mode. Replace with \n.


2 Answers

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.

like image 65
CResults Avatar answered Dec 05 '22 16:12

CResults


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

like image 40
user1832156 Avatar answered Dec 05 '22 16:12

user1832156