Formatting blogs for Linux.com
mfillpot Jul 9th, 2011 147 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- <p>Lets face it, all blogging systems and wysiwyg (What You See Is What You Get) editors have some quirks that the user must work around, particularly when you attempt to paste a pre-built formatted document into the blog system. In the case of the Linux.com Blog system it retains most of the original formatting including text size which may not appear well once it is published in html. For that reason I am here to share my trick with the other users of the blog system so everyone can have well formatted tutorials and blog posts.</p>
- <p><h2>Lets cut to the chase</h2>
- <p><br /> In efforts to allow you more time to write your own posts we can jump to my major points.
- <li>Do not write your posts in a formatted application, use only a text editor.</li>
- <li>Write the post in html using standard flags such as headings, breaks, paragraphs, ordered lists and unordered lists.</li>
- <li>Paste your text based file into the <b>Plain Text</b> tab, then add the pictures, hyperlinks, special characters and touchups in the formtted view which will be inthe <b>Rich Text</b> tab.</li>
- <li>Keep it simple, by using only the headers and default font formatting rather than specifying the text size you allow the users to change their browser setting to fit their own preferences rather than forcing your own preferences.</li>
- <li>All formatting flags except for horizontal rules and line breaks must be started and ended.</li>
- <h2>Available HTML flags</h2>
- <br /> Now that you know to write the original document in HTML, it is time share the flags that you can use.
- <li> Flags with terminators - all Of the followin flags must be terminated to end the formatting.
- <li>Paragraph - <b><p></b> - This flag is used to notate where a paragraph starts and ends, the ending flag is the paragraph with a / character - <b></p></b>.</li>
- <li>Bold - <b><b></b> - This flag is used to indicate where bold text starts and ends, the ending flag includes the / character - <b></b></b>.</li>
- <li><em>Italic</em> - <b><i></b> - This flag is used to indicate where italic text starts and ends, the ending flag includes the / character - <b></i></b>.</li>
- <li><span style="text-decoration: underline;">Underline</span> - <b><u></b> - This flag is used to indicate where underlined text starts and ends, the ending flag includes the / character - <b></u></b>.</li>
- <li>Headings - The heading flags indicate where Headings/Larger Font text starts and ends, there are four size which are numbered 1-4 from Largest to Smallest such as <b><h1></b>, the ending flag includes the / character such as <b></h1></b>. Generally I do my Section Headings in H2 and the subsections in H3.</li>
- <li>Lists - The list flags are special because you must start list with <b><ol></b> for ordered lists or <b><ul></b> for unordered lists. You must then notate each list item with between <b><li></b> and <b></li></b>. Remember that the list sets must be terminated with <b></ol></b> or <b></ul></b> depending on which type you are using.</li>
- <li>Flags without terminators<ol>
- <li>Line Returns - <b><br /></b> - The line returns are used to terminate a line. </li>
- <li>Horizontal Line - <b><hr /></b> - The Horizontal Lines create a single line across your posts which are useful for seperating sections. </li>
- </ol> </li>
- Some additional flags such as adding a hyperlink, a picture or a video can be added, but I recommend using the formatting tools in the <b>Rich Text</b> tab to guarantee that the placement is where you want it. The same can be said for special characters which you will see when you review the text for this post.</p>
- <p>Now to make this easier I have posted the html formatted text for this post to <a href="http://pastebin.com/AYGQbuxu" target="_blank">pastebin</a> so you can reference it to see what formatting I used.</p>
- <p>I hope you learned something and if you have any other hints to share please post them in the comments.</p>
RAW Paste Data