<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>FormFeed in source listing</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/19716/formfeed-in-source-listing</link><description> Hi, 
 
I want to print my source code (*.C files) with a Form Feed at specific positions. Printing will be on a HP LaserJet 5P. I tried to insert a FF character as comment, but my printer does not do a form feed, it just prints a square. My system is</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: FormFeed in source listing</title><link>https://community.arm.com/thread/130022?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2006 09:20:27 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b078e1b8-2b40-4e3d-8956-ccc2f334d281</guid><dc:creator>Dave Sudolcan</dc:creator><description>&lt;p&gt;&lt;p&gt;
OOOPS... never mind... my bad.&lt;/p&gt;

&lt;p&gt;
I actually printed my files from my *other* editor. It handled the
non-printable char&amp;#39;s correctly. Looks like the KEIL uVision editor
doesn&amp;#39;t. Not sure yet, but it looks like the uVision editor strips
out the non-printable char&amp;#39;s before sending the file to the printer.
Bummer.&lt;/p&gt;

&lt;p&gt;
Oh-well, there are plenty of freeware/shareware editors that can
colorize C code just fine and print formfeeds wherever you&amp;#39;d like.
They don&amp;#39;t force you to print KEIL&amp;#39;s version of the *ideal* header
and footer either. They let you pick the printer font, font size,
etc. too, which I can&amp;#39;t figure out how to do via KEIL&amp;#39;s editor.
Bummer.&lt;/p&gt;

&lt;p&gt;
Sorry for the false alarm. Looks like KEIL will make us use
someone else&amp;#39;s editor to get printouts we like.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FormFeed in source listing</title><link>https://community.arm.com/thread/123127?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2006 08:43:34 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c3c2af30-706c-4391-bb53-231916d098fa</guid><dc:creator>Dave Sudolcan</dc:creator><description>&lt;p&gt;&lt;p&gt;
Depending on your printer, you can embed formfeeds in a comment by
entering the ESCAPE character followed by the FORMFEED character.
This works for the printers I use, including laser printers.&lt;/p&gt;

&lt;p&gt;
I haven&amp;#39;t figured out how to enter non-printable characters via
the uVision editor, but you can do it with a different editor and
then cut/paste wherever you&amp;#39;d like it via the uVision editor.&lt;/p&gt;

&lt;p&gt;
To create a formfeed, do the following:&lt;/p&gt;

&lt;p&gt;
1) Start a comment by typing &amp;#39;//&amp;#39;&lt;br /&gt;
2) Hold down the ALT key&lt;br /&gt;
3) On the numeric keypad enter &amp;#39;027&amp;#39; (the ESCAPE character)&lt;br /&gt;
4) Release the ALT key&lt;br /&gt;
5) Hold down the ALT key&lt;br /&gt;
6) On the numeric keypad enter &amp;#39;012&amp;#39; (the FORMFEED character)&lt;br /&gt;
7) Release the ALT key&lt;br /&gt;
8) End the line by pressing the ENTER key&lt;/p&gt;

&lt;p&gt;
In the editor you&amp;#39;ll probably see the start of a comment followed
by two box char&amp;#39;s that represent non-printable ASCII characters, I
think.&lt;/p&gt;

&lt;p&gt;
In your printouts you&amp;#39;ll see an empty comment as the last printed
line on one page and the following text will appear on a new page.
You can add text after the ESCAPE &amp;amp; FORMFEED characters denoting
whatever you&amp;#39;d like if you don&amp;#39;t like the empty comment.&lt;/p&gt;

&lt;p&gt;
Works for me...&lt;/p&gt;

&lt;p&gt;
Good luck,&lt;br /&gt;
Seadog.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FormFeed in source listing</title><link>https://community.arm.com/thread/111925?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2006 03:17:17 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:efad1c8e-da79-4872-8024-fd466054ce09</guid><dc:creator>Heino Smit</dc:creator><description>&lt;p&gt;Yes, I alreday reckoned it would be that way. With other editors it worked just fine to put a FF character as comment. The printer accepted this and performed a form feed. But maybe this was at DOS times.&lt;br /&gt;
&lt;br /&gt;
Many Thanks&lt;br /&gt;
Heino&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FormFeed in source listing</title><link>https://community.arm.com/thread/97805?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2006 02:21:23 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7f2c30c1-a546-4eb4-bb47-98fa692f435f</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;No, you can&amp;#39;t do that.&lt;br /&gt;
&lt;br /&gt;
You will need to find some 3rd-party &amp;quot;pretty-print&amp;quot; utility...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FormFeed in source listing</title><link>https://community.arm.com/thread/73800?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2006 01:31:33 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ff3933f2-9b95-4dcf-bfd7-a898c90544ea</guid><dc:creator>Heino Smit</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;
&lt;br /&gt;
I do not want to print the listing, but the original source file. And the page-breaks shall not be evenly distributed over the document but shall be at dedicated places.&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
Heino&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FormFeed in source listing</title><link>https://community.arm.com/thread/45465?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2006 14:23:02 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:79ee8751-37f2-4b94-b20e-255e6747086e</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;Set the page length in the listing options&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>