WordPress Cheatsheet

Posting code in your blog

Depending upon your need you can use tag code
e.g.

ls  

A proper detailed version:
[ code language=”language of your choice”]  Code in language of your choice [/code]
language can be many like cpp, bash, css, html

will give you (for language = “csharp”)

 Console.Writeln("Learning WordPress");

You can insert formula using \LaTeX

Like let us say you want to write formula 4/2 = 2 with latex

\frac{4}{2} = 2

Like

A = \int \frac{1}{t^2}.dt = -\frac{1}{t}

\int_0^1 f(x) \, \mathrm{d} x

i\hbar\frac{\partial}{\partial t}\left|\Psi(t)\right>=H\left|\Psi(t)\right>

Find the GitHub link for the post source file here

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s