From: Graeme P. <gf...@pa...> - 2003-05-12 11:05:00
|
> Subject: [ jEdit-users ] What's wrong ? >=20 >=20 > ... about asking "How to insert a page break in a text for printing ?" >=20 Hi Risto nothing at all is wrong with asking. I guess it's not something done = very much. I hardly ever print source code these days, and when I do, it's = only a temporary printout to check some code and I want it printed on as few = a pages as possible, with no extra page breaks. If it's any consolation, the Editplus editor doesn't provide a way to do this either. You can probably do it with a beanshell macro e.g. mark = the page breaks with a line something like // *pagebreak* then write a script to copy all text up to the page break into a new = buffer and print that buffer, then repeat up to the next page break. You might = be able to use the embedded formfeeds you mentioned in your previous post = - I don't know if that's possible. I don't have time to try it myself - check some of the example macros, = and try recording a macro that does a buffer print to get the idea - and = try recording a macro that searches for the pagebreak. If you're familiar = with Java or C/C++, writing a beanshell script is reasonably easy. Graeme |