2006-12-21 13:54:29 +00:00
|
|
|
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Printing support</title><link rel="stylesheet" href="geany.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.71.0"><link rel="start" href="index.html" title="Geany 0.10"><link rel="up" href="ch03.html" title="Chapter 3. Usage"><link rel="prev" href="ch03s07.html" title="Build system"><link rel="next" href="ch03s09.html" title="Keybindings"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Printing support</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch03s07.html">Prev</a> </td><th width="60%" align="center">Chapter 3. Usage</th><td width="20%" align="right"> <a accesskey="n" href="ch03s09.html">Next</a></td></tr></table><hr></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="printing"></a>Printing support</h2></div></div></div><p>
|
|
|
|
|
<span class="application">Geany</span> has basic printing support. This means you can
|
|
|
|
|
print a file by passing the filename of the current file to a command which actually
|
|
|
|
|
prints the file. However, the printed document contains no syntax highlighting.
|
|
|
|
|
You can adjust the command to which the filename is passed in the preferences dialog.
|
|
|
|
|
The default command is:
|
2006-08-09 17:18:25 +00:00
|
|
|
|
</p><pre class="screen"><code class="prompt">%</code> <strong class="userinput"><code><span><strong class="command">lpr</strong></span> %f</code></strong></pre><p>
|
|
|
|
|
%f will be substituted by the filename of the current file.
|
|
|
|
|
<span class="application">Geany</span> will not show errors from the command itself, so
|
|
|
|
|
you should make sure that it works before(e.g. by trying to execute it from the
|
|
|
|
|
command line).
|
2006-06-04 13:10:16 +00:00
|
|
|
|
</p><p>
|
2006-08-09 17:18:25 +00:00
|
|
|
|
A nicer example, which I prefer is:
|
|
|
|
|
</p><pre class="screen"><code class="prompt">%</code> <strong class="userinput"><code><span><strong class="command">a2ps</strong></span> -1 --medium=A4 -o - %f | xfprint4</code></strong></pre><p>
|
|
|
|
|
But this depends on a2ps and xfprint4. As a replacement for xfprint4, gtklp or similar
|
|
|
|
|
programs can be used.
|
|
|
|
|
</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
|
2006-12-21 13:54:29 +00:00
|
|
|
|
The printing support of <span class="application">Geany</span> will be improved in the
|
|
|
|
|
future. With GTK 2.10, better printing (including syntax highlighting) will be possible.
|
2006-08-09 17:18:25 +00:00
|
|
|
|
</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch03s07.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch03.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch03s09.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Build system </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Keybindings</td></tr></table></div></body></html>
|