Thursday, July 18, 2013

First post. Setting up syntax highlighting.

I am using highlightjs. Go to Design->Template->Edit HTML. Add following snippet to the end of head section:

  <head>
        ...
     <link href='http://yandex.st/highlightjs/8.0/styles/sunburst.min.css' rel='stylesheet'/>
     <script src='http://yandex.st/highlightjs/8.0/highlight.min.js'/>
     <script type='text/javascript'>
         hljs.configure({tabReplace: '    '});
         hljs.initHighlightingOnLoad();
     </script>
  </head>
The result:

<?php
  echo 'Hello world!';

1 comment:

  1. Wynn Resorts, LLC. - Mapyro
    Address: 3131 포항 출장안마 Las Vegas Blvd S 원주 출장안마 Las Vegas, NV 89109. 속초 출장마사지 Phone: 702-693-7117. Website: http://www.wynnlasvegas.com/ Address: 3131 Las Vegas 아산 출장안마 Blvd S Las Vegas, NV 89109Phone: 702-693-7117. Website: 벳 인포 http://www.wynnlasvegas.com/

    ReplyDelete