How can a Page Break be entered in gedit?

Asked by Kelly Bellis

In TextPad, for example, the user can enter a deliberate Page Break. How can a Page Break be entered in gedit?

Thanks for any reply.

Kelly

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gedit Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

I don't think its possible. You could always type your text in gedit, then add the breaks in Libreoffice.

Revision history for this message
Warren Hill (warren-hill) said :
#2

Gedit is a simple text editor its not intended to be a word processor in any way. I agree with Andrew I don't think its possible.

I suggest using a Word processor such as Writer in Libreoffice.

Revision history for this message
Kelly Bellis (kellybellis) said :
#3

Thank you both for the reply - I appreciate your efforts :)

Mostly the question arose from the need to include the instruction in the bit of C++ being compiled on the Linux box which would result in the lengthy text file ultimately produced when the command was run to be broken into pages.

Thanks anyway.

Kelly

Revision history for this message
Warren Hill (warren-hill) said :
#4

If you enter an ASCII form-feed (Character 0x14) into the source file it will be ignored by the compiler and when printed will throw new page (page break). I do not know how you can enter this in gedit though.

Revision history for this message
Charles J. Dubats (cjdubats-i) said :
#5

I was easily able to insert an 0x0c (form feed) or an 0x14 (device control 4) character with gedit. I opened the character map utility and did a copy of the desired character. Then in gedit I did a control-v paste. The special character displays
and prints in gedit as a weird little character icon and does not give the desired form feed. When I open the file with hexedit, I can verify that a single byte 0x0c was inserted in the file. When I open the file in Abiword, the 0x0c gives the desired form feed on the displayed and printed page. The 0x14 displays as a '?'. So it you were after a page break directly in gedit where you have context/keyword sensitive color etc, this is no help. I you want the page break only on the printed page, this is a lame but effective workaround.

Can you help with this problem?

Provide an answer of your own, or ask Kelly Bellis for more information if necessary.

To post a message you must log in.