I know my title isn't that descriptive so let me try to explain it here.
In my blog I want to add an option for user that when he clicks a small button named view:source
he gets the the source code in raw format
. I am using prettify.js
for syntax highlighting and it automatically creates a textbox around my source code with the below defined css:
pre.prettyprint {
border-style: groove;
border-radius: 10px;
padding: 10px;
overflow: auto;
font-family: "DejaVu Sans Mono";
font-size: 12px;
background-color: #EBECE4
}
Now, in that text-box like structure I just want to add an option/button to view the source in raw format. The feature am talking about can be seen in this dzone post.