Let's make a note... -StartingFromNothing-

Sunday, June 9, 2013

How to writing code in blogspot

Here is a sample CSS of code snippet to write code inside post in blogspot. You can modify this code as needed. Just add this code to Edit Template > Add CSS > Write down in the text area.


.code { background-color: #eeeeee;
    border: 1px dashed rgb(153, 153, 153);
    font-family: 'Andale Mono', 'Lucida Console', Monaco, fixed, monospace;
    font-size: 12px;
    line-height: 14px;
    margin: 10px 0 10px 10px;
    overflow: auto;
    padding: 10px 10px 10px;
    width: 600px;
    color: black;
}

Then write your code inside div tag like shown below. Don't forget by writing this in HTML mode (simplify by pressing HTML button).

<div class='code'>
Your code should be pasted here in this div tag.
</div>

No comments:

Post a Comment