Showing posts with label Blogger. Show all posts
Showing posts with label Blogger. Show all posts

Monday, 27 August 2012

New layout: Responsive design

For a long time, I was looking for a layout that was made use of the full width of the screen. Today I found the 'Incipient Template', which actually has a kind of responsive design.
I didn't customize it (yet...), for now I like it. It's clean, fast and nice to use (thanks to Amanda from bloggerbuster.com). Oh yes, I just added the syntax highlighter on it, to show the code samples on a nice way.
So I hope you'll enjoy the new layout. However, it's all about the content ;)

Thursday, 12 March 2009

Why you don't want paste directly from Word to Blogger

Haha, today I thought to do something smart. I had a (short) line of text in my Word 2007 document (selected part),



and I was writing my previous post (Restore My Sites from different domain). So, just the copy - paste (from Word 2007 to Blogspot). Oops, I didn't went well (format messed up a bit :). So, I thought, well lets fix it at the 'Edit Html' tab. Woops, what's that? I saw a huge amount of code, just to show my short line of text. It places over more than 2,600 words containing almost 26,000!! characters. I reformatted this piece of code, just to share my experience with you.
I put it here:

<?xml version="1.0" encoding="utf-8" ?>
<ol>
<li>
<meta equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="ProgId" content="Word.Document">
<meta name="Generator" content="Microsoft Word 12">
<meta name="Originator" content="Microsoft Word 12">
<link rel="File-List"
href="file:///C:%5CDOCUME%7E1%5CROBVAN%7E1.000%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml">
<link rel="themeData"
href="file:///C:%5CDOCUME%7E1%5CROBVAN%7E1.000%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx">
<link rel="colorSchemeMapping"
href="file:///C:%5CDOCUME%7E1%5CROBVAN%7E1.000%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml">
<!--[if gte mso 9]>
<xml>
<w:worddocument>
<w:view>
Normal
</w:View>
<w:zoom>
0
</w:Zoom>
<w:trackmoves/>
<w:trackformatting/>
<w:punctuationkerning/>
<w:validateagainstschemas/>
<w:saveifxmlinvalid>
false
</w:SaveIfXMLInvalid>
<w:ignoremixedcontent>
false
</w:IgnoreMixedContent>
<w:alwaysshowplaceholdertext>
false
</w:AlwaysShowPlaceholderText>
<w:donotpromoteqf/>
<w:lidthemeother>
EN-US
</w:LidThemeOther>
<w:lidthemeasian>
X-NONE
</w:LidThemeAsian>
<w:lidthemecomplexscript>
X-NONE
</w:LidThemeComplexScript>
<w:compatibility>
<w:breakwrappedtables/>
<w:snaptogridincell/>
<w:wraptextwithpunct/>
<w:useasianbreakrules/>
<w:dontgrowautofit/>
<w:splitpgbreakandparamark/>
<w:dontvertaligncellwithsp/>
<w:dontbreakconstrainedforcedtables/>
<w:dontvertalignintxbx/>
<w:word11kerningpairs/>
<w:cachedcolbalance/>
</w:Compatibility>
<w:browserlevel>
MicrosoftInternetExplorer4
</w:BrowserLevel>
<m:mathpr>
<m:mathfont val="Cambria Math">
<m:brkbin val="before">
<m:brkbinsub val="--">
<m:smallfrac val="off">
<m:dispdef/>
<m:lmargin val="0">
<m:rmargin val="0">
<m:defjc val="centerGroup">
<m:wrapindent val="1440">
<m:intlim val="subSup">
<m:narylim val="undOvr">
</m:mathPr>
</w:WordDocument>
</xml>
<![endif]-->
<!--[if gte mso 9]>
<xml>
<w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267">
<w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal">
<w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1">
<w:lsdexception locked="false" priority="9" qformat="true" name="heading 2">
<w:lsdexception locked="false" priority="9" qformat="true" name="heading 3">
<w:lsdexception locked="false" priority="9" qformat="true" name="heading 4">
<w:lsdexception locked="false" priority="9" qformat="true" name="heading 5">
<w:lsdexception locked="false" priority="9" qformat="true" name="heading 6">
<w:lsdexception locked="false" priority="9" qformat="true" name="heading 7">
<w:lsdexception locked="false" priority="9" qformat="true" name="heading 8">
<w:lsdexception locked="false" priority="9" qformat="true" name="heading 9">
<w:lsdexception locked="false" priority="39" name="toc 1">
<w:lsdexception locked="false" priority="39" name="toc 2">
<w:lsdexception locked="false" priority="39" name="toc 3">
<w:lsdexception locked="false" priority="39" name="toc 4">
<w:lsdexception locked="false" priority="39" name="toc 5">
<w:lsdexception locked="false" priority="39" name="toc 6">
<w:lsdexception locked="false" priority="39" name="toc 7">
<w:lsdexception locked="false" priority="39" name="toc 8">
<w:lsdexception locked="false" priority="39" name="toc 9">
<w:lsdexception locked="false" priority="35" qformat="true" name="caption">
<w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title">
<w:lsdexception locked="false" priority="1" name="Default Paragraph Font">
<w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle">
<w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong">
<w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis">
<w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid">
<w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text">
<w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing">
<w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading">
<w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List">
<w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid">
<w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1">
<w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2">
<w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1">
<w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2">
<w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1">
<w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2">
<w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3">
<w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List">
<w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading">
<w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List">
<w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid">
<w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1">
<w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1">
<w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1">
<w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1">
<w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1">
<w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1">
<w:lsdexception locked="false" unhidewhenused="false" name="Revision">
<w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph">
<w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote">
<w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote">
<w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1">
<w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1">
<w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1">
<w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1">
<w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1">
<w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1">
<w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1">
<w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1">
<w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2">
<w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2">
<w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2">
<w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2">
<w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2">
<w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2">
<w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2">
<w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2">
<w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2">
<w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2">
<w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2">
<w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2">
<w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2">
<w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2">
<w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3">
<w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3">
<w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3">
<w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3">
<w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3">
<w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3">
<w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3">
<w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3">
<w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3">
<w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3">
<w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3">
<w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3">
<w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3">
<w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3">
<w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4">
<w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4">
<w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4">
<w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4">
<w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4">
<w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4">
<w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4">
<w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4">
<w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4">
<w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4">
<w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4">
<w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4">
<w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4">
<w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4">
<w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5">
<w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5">
<w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5">
<w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5">
<w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5">
<w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5">
<w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5">
<w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5">
<w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5">
<w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5">
<w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5">
<w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5">
<w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5">
<w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5">
<w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6">
<w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6">
<w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6">
<w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6">
<w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6">
<w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6">
<w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6">
<w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6">
<w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6">
<w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6">
<w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6">
<w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6">
<w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6">
<w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6">
<w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis">
<w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis">
<w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference">
<w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference">
<w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title">
<w:lsdexception locked="false" priority="37" name="Bibliography">
<w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading">
</w:LatentStyles>
</xml>
<![endif]-->
<style>
<!-- /* Font Definitions */
@font-face {
font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:0;
mso-generic-font-family:roman;
mso-font-pitch:variable;
mso-font-signature:-1610611985 1107304683 0 0 159 0;
}
@font-face {
font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-1593833729 1073750107 16 0 415 0;
}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal {
mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin-top:0cm;
margin-right:0cm;
margin-bottom:6.0pt;
margin-left:53.85pt;
text-align:justify;
mso-pagination:widow-orphan;
tab-stops:53.85pt;
font-size:9.0pt;
font-family:"Verdana","sans-serif";
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";
mso-ansi-language:NL;
}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
mso-style-update:auto;
mso-style-priority:34;
mso-style-unhide:no;
mso-style-qformat:yes;
margin-top:0cm;
margin-right:0cm;
margin-bottom:6.0pt;
margin-left:36.0pt;
mso-add-space:auto;
text-align:justify;
mso-pagination:widow-orphan;
tab-stops:53.85pt;
font-size:9.0pt;
font-family:"Verdana","sans-serif";
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";
mso-ansi-language:NL;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst {
mso-style-update:auto;
mso-style-priority:34;
mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-type:export-only;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
mso-add-space:auto;
text-align:justify;
mso-pagination:widow-orphan;
tab-stops:53.85pt;
font-size:9.0pt;
font-family:"Verdana","sans-serif";
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";
mso-ansi-language:NL;
}
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle {
mso-style-update:auto;
mso-style-priority:34;
mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-type:export-only;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
mso-add-space:auto;
text-align:justify;
mso-pagination:widow-orphan;
tab-stops:53.85pt;
font-size:9.0pt;
font-family:"Verdana","sans-serif";
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";
mso-ansi-language:NL;
}
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
mso-style-update:auto;
mso-style-priority:34;
mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-type:export-only;
margin-top:0cm;
margin-right:0cm;
margin-bottom:6.0pt;
margin-left:36.0pt;
mso-add-space:auto;
text-align:justify;
mso-pagination:widow-orphan;
tab-stops:53.85pt;
font-size:9.0pt;
font-family:"Verdana","sans-serif";
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";
mso-ansi-language:NL;
}
.MsoChpDefault {
mso-style-type:export-only;
mso-default-props:yes;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;
mso-ansi-language:NL;
}
.MsoPapDefault {
mso-style-type:export-only;
margin-bottom:10.0pt;
line-height:115%;
}
@page Section1 {
size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;
mso-header-margin:36.0pt;
mso-footer-margin:36.0pt;
mso-paper-source:0;
}
div.Section1 {
page:Section1;
}
/* List Definitions */ @list l0 {
mso-list-id:1515269166;
mso-list-type:hybrid;
mso-list-template-ids:580178114 -1823804710 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;
}
@list l0:level1 {
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:71.85pt;
text-indent:-18.0pt;
}
@list l0:level2 {
mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:107.85pt;
text-indent:-18.0pt;
}
ol {
margin-bottom:0cm;
}
ul {
margin-bottom:0cm;
} -->
</style>
<!--[if gte mso 10]> <style> /* Style Definitions */
table.MsoNormalTable {
mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin-top:0cm;
mso-para-margin-right:0cm;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0cm;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-ansi-language:NL;
} </style> <![endif]-->
<p class="MsoListParagraph" style="margin-left: 71.85pt; text-indent: -18pt;">
<!--[if !supportLists]-->
<span style="">
<span style="">
1.<span ;
font-style: normal; font-variant: normal; font-weight: normal;
font-size: 7pt; line-height: normal; font-size-adjust:
none; font-stretch: normal;"> </span>
</span>
</span>
<!--[endif]-->
<span style="">
First of all, let the user create a My Site, in my example there will
be a site called: http://intranet/personal/brian_cox<o:p></o:p>
</span>
</p>
</li>
</ol>

So, just find the sentence: First of all, let the user create a My Site, in my example there will be a site called: http://intranet/personal/brian_cox :)

Wednesday, 4 March 2009

Windows Live Writer 2009 still sucks…

My previous experience with Windows Live Writer (beta) were not that good. It made a mess of tags. For example, it didn’t create new <p></p> when I started a new paragraph, but it did a kind of encapsulation like: <p><p>…</p></p>. So it messed the layout to much, showed to much white space and so on. So I actually didn’t like it.

Now this post is written from Windows Live Writer 2009, but it still sucks. It does still the strange things like I mentioned above.When I press enter (to start a new paragraph) it doesn’t show a new paragraph, but it encapsulate the whole text with another <p></p>.

Well, at least with my version of Blogger, it won’t work that well. It looks like a hard job to create a normal blog editor :(

Monday, 12 January 2009

Syntax Highlighting in Blogger

After struggling a while I am ready to publish a post about syntax highlighting on Blogger.
There are many topics of how to 'install' syntax highlighting on Blogger. I will not repeat that. Just search for syntaxhighlighter or go to syntax highlighter.
In brief, take the following steps:

  1. Copy the necessary javascript files to your script directory on your website. You need at least the following files:
    1. shCore.js file
    2. clipboard.swf
    3. shBrush**.js (where the ** should be e.g. Vb or CSharp)
  2. Place references on your theme to these files (in blogger, go to Layout/edit HTML)
  3. In many cases, using the SyntaxHighlighter.css file (place also the reference in your theme) will be suitable. Unfortunately, for my theme (which I downloaded for free from http://www.ourblogtemplates.com/), it doesn't work that well. For each line of code, the gray bar was to wide, as well as that the code lines didn't align well with the top bar of the code piece.
    After searching a lot, I found the solution:
  4. Instead of using the syntax highlight style from the css file (see step 3), copy the entire content of this file, and paste it into the style section of your theme. Delete the reference to the css file (you don't need it anymore), and voila, job done!
Now you are able to put your code in on your blog with syntax highlighting. I prefer using the pre-tag.
If you still got questions, don't hesitate, just ask them.