1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 2K.1beta (1.48)
original version by: Nikos Drakos, CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>HTML Mode</TITLE>
<META NAME="description" CONTENT="HTML Mode">
<META NAME="keywords" CONTENT="MANUAL">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v2K.1beta">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="MANUAL.css">
<LINK REL="next" HREF="node48.html">
<LINK REL="previous" HREF="node46.html">
<LINK REL="up" HREF="node41.html">
<LINK REL="next" HREF="node48.html">
</HEAD>
<BODY >
<!--Navigation Panel-->
<A NAME="tex2html718"
HREF="node48.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
SRC="/usr/share/latex2html/icons/next.png"></A>
<A NAME="tex2html714"
HREF="node41.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
SRC="/usr/share/latex2html/icons/up.png"></A>
<A NAME="tex2html708"
HREF="node46.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
SRC="/usr/share/latex2html/icons/prev.png"></A>
<A NAME="tex2html716"
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
SRC="/usr/share/latex2html/icons/contents.png"></A>
<BR>
<B> Next:</B> <A NAME="tex2html719"
HREF="node48.html">The Future</A>
<B> Up:</B> <A NAME="tex2html715"
HREF="node41.html">For Hackers...</A>
<B> Previous:</B> <A NAME="tex2html709"
HREF="node46.html">Extra Macros</A>
  <B> <A NAME="tex2html717"
HREF="node1.html">Contents</A></B>
<BR>
<BR>
<!--End of Navigation Panel-->
<H1><A NAME="SECTION001140000000000000000">
HTML Mode</A>
</H1>
<P>
Probably the easiest part of GTKeyboard to hack on is to add HTML
items. If you're interested, check out html_mode.c where you can add all of
the new HTML tags that you want. You then have to edit master.h and
edit the menu structure to include whatever function you put in
there. If you're familiar with item factories, it's criminally
simple. The same goes for shortcuts.c which I would like to see more
shortcuts in. Basically when I code, I put in what I think people can
use, and if anybody sends me a suggestion that gets put in to. In
html_mode.c I use the function <I>vanilla(char *input)</I> which inserts into
output_text heavily. That way, if I find I wanna redirect things
later, I make some simple changes to vanilla and change where
everything goes. Also I provided cursor_left_x_times(int whatever) so
that you could repeat cursor_left() without having to set up for loops
and extra variables. Just pass it the strlen(something) where
something is usually the closing HTML tag. (html_mode.c has 1000 examples)
<P>
<BR><HR>
<ADDRESS>
David Allen
2001-04-26
</ADDRESS>
</BODY>
</HTML>
|