Skip to content

Instantly share code, notes, and snippets.

testing cpp highlighting :::cpp int main () { int a = 5; std::cout << a << std::endl; }

<p>test</p>
<div class="codehilite"><pre><span class="kt">int</span> <span class="nf">main</span> <span class="p">()</span>
<span class="p">{</span>
<span class="kt">int</span> <span class="n">a</span> <span class="o">=</span> <span class="mi">5</span><span class="p">;</span>
<span class="n">std</span><span class="o">::</span><span class="n">cout</span> <span class="o">&lt;&lt;</span> <span class="n">a</span> <span class="o">&lt;&lt;</span> <span class="n">std</span><span class="o">::</span><span class="n">endl</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>

Title: Gallery Category: Main

testing cpp highlighting

:::cpp
int main ()
{
    int a = 5;

std::cout << a << std::endl;

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JV - Science and stuff.</title>
<meta name="description" content="">
<meta name="author" content="Javier V. Gómez">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
# Site setings
AUTHOR = u'Javier V. Gómez'
SITENAME = u'JV - Science and stuff.'
#SITEURL = 'https://jvgomez.github.io'
SITEURL = ''
TIMEZONE = 'Europe/Paris'
# Creating test file
bibtex = """@ARTICLE{Cesar2013,
author = {Jean César},
title = {An amazing title},
year = {2013},
month = jan,
volume = {12},
pages = {12--23},
journal = {Nice Journal},
abstract = {This is an abstract. This line should be long enough to test
#!/usr/bin/env python
import rospy
from math import fabs, pi
from dynamixel_msgs.msg import JointState
from std_msgs.msg import Float64
import tf
goal_pos = 0;
pub = rospy.Publisher('/tilt_controller/command', Float64)