<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML ><HEAD ><TITLE >Examples</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.57"><LINK REL="HOME" TITLE="The KSirc Handbook" HREF="index.html"><LINK REL="UP" TITLE="kSirc Colours" HREF="sectcolors.html"><LINK REL="PREVIOUS" TITLE="Sending Bold, Underline, Reverse, and Colour" HREF="sendingboldunderlinereverseandcolour.html"><LINK REL="NEXT" TITLE="Filters" HREF="filters.html"><META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"><LINK REL="stylesheet" HREF="common/kde-common.css" TYPE="text/css"><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"><META HTTP-EQUIV="Content-Language" CONTENT="en"><LINK REL="stylesheet" HREF="common/kde-localised.css" TYPE="text/css" TITLE="KDE-English"><LINK REL="stylesheet" HREF="common/kde-default.css" TYPE="text/css" TITLE="KDE-Default"></HEAD ><BODY CLASS="SECT1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#AA0000" VLINK="#AA0055" ALINK="#AA0000" STYLE="font-family: sans-serif;" ><DIV CLASS="logoheader" ><A HREF="http://www.kde.org/" ><IMG SRC="common/logotp3.png" BORDER="0" ALT="The K Desktop Environment" HEIGHT="62" WIDTH="229"></A ></DIV ><DIV CLASS="NAVHEADER" ><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >The KSirc Handbook</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="sendingboldunderlinereverseandcolour.html" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Chapter 2. kSirc Colours</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="filters.html" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="SECT1" ><H1 CLASS="SECT1" ><A NAME="EXAMPLESSETCOLORS" >2.5. Examples</A ></H1 ><P >To underline a single word in a sentence: <OL TYPE="1" ><LI ><P >Type Control-U</P ></LI ><LI ><P >Type in the word</P ></LI ><LI ><P >Type Control-U again</P ></LI ></OL ></P ><P >Only the text that is enclosed by the start and end codes will be affected. You can use this method with all of the other control codes.</P ><P >The Control-K control code is slightly different because it allows you to specify a colour number. To colour a single word in a sentence:</P ><P ><OL TYPE="1" ><LI ><P >Type Control-K</P ></LI ><LI ><P >Type a number between 0 and 15</P ></LI ><LI ><P >Type the word</P ></LI ><LI ><P >Type Control-K again</P ></LI ></OL ></P ><P >If you also want to change the background colour of a word, you would need to type two numbers separated by a comma instead of just one number. The first number is the text colour, the second number is the background colour. The colours range from 0 to 15, the index is in the previous section.</P ><P >You can enclose text in multiple control codes, so for example you could have a bold, underlined, and coloured word.</P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="sendingboldunderlinereverseandcolour.html" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="filters.html" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Sending Bold, Underline, Reverse, and Colour</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="sectcolors.html" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Filters</TD ></TR ></TABLE ></DIV ></BODY ></HTML >