My Galaxy,  Programming

Highlight Code Syntax

How to put code in snippets?

So how do you put code in snippets for wordpress just like this?

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#include <iostream>

using namespace std;

int main()
{
    cout<<"Enter your name here:"<< endl;
    string first_name;
    cin>>first_name;
    cout<<"Hello"<<first_name;

    return 0;
}

 

use hilite.me

Just insert your code in there, and then copy the new HTML format.

Its that simple!

anyways check it out!

Check out my instagram page! http://instagram.com/paynedeath

Leave a Reply

Your email address will not be published. Required fields are marked *