Blogへのシンタックスハイライトの設定

イシュー

参考

 
 色づけしたいコードを記述
/**
 * AccountController
 *
 * @description :: Server-side logic for managing accounts
 * @help        :: See http://links.sailsjs.org/docs/controllers
 */

module.exports = {

  new: function (req, res) {
    res.view();
  },
  update: function(req, res, next) {
    Account.update( req.param('id'), req.params.all(), function accountUpdated (err){
      if(err) {
        return res.redirect('/account/edit/' + req.param('id'));
      }

      res.redirect('/account/show/' + req.param('id'));
    });
  }
}
package com.opencsv;

import java.io.IOException;
import java.util.Iterator;

/**
 * Provides an Iterator over the data found in opencsv.
 */
public class CSVIterator implements Iterator<String[]> {
   private CSVReader reader;
   private String[] nextLine;

   /**
    * @param reader reader for the csv data.
    * @throws IOException if unable to read data from the reader.
    */
   public CSVIterator(CSVReader reader) throws IOException {
      this.reader = reader;
      nextLine = reader.readNext();
   }

   /**
    * Returns true if the iteration has more elements.
    * In other words, returns true if next() would return an element rather than throwing an exception.
    *
    * @return true if the CSVIterator has more elements.
    */
   public boolean hasNext() {
      return nextLine != null;
   }

   /**
    *
    * Returns the next elenebt in the iterator.
    *
    * @return The next element of the iterator.
    */
   public String[] next() {
      String[] temp = nextLine;
      try {
         nextLine = reader.readNext();
      } catch (IOException e) {
         throw new RuntimeException(e);
      }
      return temp;
   }

   /**
    * This method is not supported by openCSV and will throw a UnsupportedOperationException if called.
    */
   public void remove() {
      throw new UnsupportedOperationException("This is a read only iterator.");
   }
}
<?xml version="1.0" encoding="utf-8" ?>
<!-- this is an example XML file -->
<people xmlns:x="http://studiostyles.info">
  <person name="Jim Jones" ID="27">
    <email html="yes">jim@example.invalid</email>
    <address>
      <post>123 Example St, &#160;South Brisbane</post>
      <city>Brisbane</city>
    </address>
    <x:comments>
    <![CDATA[ See? Data. Don't worry about this <tag>. ]]>
    </x:comments>
  </person>
</people>
.entry-content pre.code {
    background-color: #272822;
    color: #E0E2E4;
}
.synSpecial { color: #f92672 }
.synType { color: #f92672 }
.synComment { color: #75715e }
.synPreProc { color: #f92672 }
.synIdentifier { color: #66d9ef }
.synConstant { color: #e6db74 }
.synStatement { color: #f92672 }  

var a = 2;