Tuesday, December 6, 2016

Syntax Highlighting!

This blog officially has syntax highlighting!

BASH

# Hello world for the Unix shells (sh, ksh, csh, zsh, bash, fish, xonsh, ...)
echo Hello World

JavaScript

// Hello World in JavaScript
document.write('Hello World');

PHP

// Hello world in PHP
echo 'Hello World!';

Plain Text

Hello, world!

Python

# Hello world in Python 2
print "Hello World"
# Hello world in Python 3 (aka Python 3000)
print("Hello World")

Ruby

# Hello World in Ruby
puts "Hello World!"

1 comment:

  1. Are you using http://alexgorbatchev.com/SyntaxHighlighter/hosting.html ?
    If so? How did you install it in blogger???

    I am having these issues:

    GET https://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css net::ERR_CONNECTION_REFUSED
    https://alexgorbatchev.com/pub/sh/current/scripts/shCore.js net::ERR_CONNECTION_REFUSED
    https://alexgorbatchev.com/pub/sh/current/scripts/shAutoloader.js net::ERR_CONNECTION_REFUSED

    I tried //path/to/highlighter
    and http://path/to/highlighter

    But nothing works :(

    Any help?

    ReplyDelete

1,050 hours

It took me 13 working days to complete my first 100 "work" pomodoros as a Junior Software Tester at Profectus Group.  Much of ...