Rabu, 05 Januari 2011

PC Mechanic, New Article

PC Mechanic, New Article


How To Bold/Italic/Underline Words In Plain Text

Posted: 05 Jan 2011 03:30 AM PST

Plain text as you know has no formatting options. You cannot bold/italic/underline anything – but you can use specific characters to represent formatting that are easy to remember.

The old-school way of emphasis was to type in all caps. All caps is and has been considered TO BE SHOUTING for years, so you can’t do that anymore unless you want to look like an idiot. You can however use "enhanced plain text". This is a standard feature in the Mozilla Thunderbird mail client, but even if not using a mail client which recognizes enhanced plain text, it’s still easy to understand regardless.

For bold, surround with asterisks:

She sells *seashells* by the seashore.

For italic, surround with forward slashes:

The rain in Spain falls /mainly/ on the plain.

For underline, surround with underscores:

I'm a mother pheasant plucker; I pluck mother pheasants. I'm _the most pleasant_ mother pheasant plucker who ever plucked a mother pheasant. Signed, Ophelia Bhutt.

When you feed the need to emphasize text (particularly on SMS), using enhanced text is the way to b/i/u your message.

Post from: PCMech. Helping Normal People Get Their Geek On And Live The Digital Lifestyle.

How To Bold/Italic/Underline Words In Plain Text

How To Use Page Breaks In HTML

Posted: 05 Jan 2011 03:00 AM PST

When writing documents, HTML is actually not a bad choice because you have plenty of editors to choose from and it is universally compatible. Concerning editors, you could use Seamonkey (it has an HTML editor in its suite), Kompozer or even text editors like Notepad or vi.

The issue with HTML however is that it’s not exactly clear how to make a page break. This is a completely do-able thing, and all that’s required are the use of header tags and one line of CSS in the "source" view.

CSS as most of you know means Cascading Style Sheet. You can use CSS either directly in the document or as a separate file. For simplicity’s sake I’m going to instruct how to use this directly in the document using very ‘ugly’ code, but it works.

Step 1. Input one line of code in the top of your document using "source" view

You cannot type this directly in the document because it won’t work. This code is specifically for the ‘source’ view.

The code is this:

<style type="text/css">h1 {page-break-before:always}</style>

Put this at the very top of the document.

Step 2. Use the H1 tag

H1 in HTML editors is usually labeled as "Heading 1". It’s in the same drop-down menu where it shows "Paragraph". When you highlight a block of text and change it to Heading 1, the font will be bold and large; this is normal. If you make a mistake, you can change it back to Paragraph, then select the appropriate text you want to use as Heading 1.

Any time you use Heading 1 from that point forward, a page break will happen directly before it.

Step 3. Load in web browser, print

On double-click of your file ending in .html, it will load in your web browser by default. Print from there, and the browser will obey the areas where you used H1 for page breaks.

Want a table of contents (or not waste paper)? Print to PDF

Using free PDF creator software such as PDFCreator, any document you print to a PDF file will generate its own table of contents based on your use of Heading 1. This will be shown in the left sidebar of your PDF reader of choice.

If you want to get really fancy, you can make subsections by using Heading 2, Heading 3 and so on – all the way up to Heading 6. Only Heading 1 will make a page break as you put in your code, but the others will divide into subsections. These subsections will appear as collapsible/expandable tree-style menus in your PDF reader.

When your HTML document is in PDF form, it looks and acts like it would in a word processor like Word or OpenOffice.org Writer. In a browser you don’t see page breaks even if you have them in the code, but in PDF form you do.

Post from: PCMech. Helping Normal People Get Their Geek On And Live The Digital Lifestyle.

How To Use Page Breaks In HTML

Tidak ada komentar:

Posting Komentar