J. Caleb Wherry bio photo

J. Caleb Wherry

Scientist. Engineer. Musician.

Email Twitter Facebook Google+ LinkedIn Github Stackoverflow

I just installed a new plugin for embedding code into my posts. I had to do some edits to my custom Wordpress theme so here goes nothing:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Here are some comments.
// They are pretty awesome, right?


// And some nice whitespace above, let's see how that comes out.
// Also, what about a reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaallly long line.
// Alright, looks good. Let's do some syntax highlighting, should be C++ since I used the cpp tags...
namespace matrix {
  class Matrix {
    private:
      int rowSize;
      int colSize;
    public:
      Matrix(): rowSize(0), colSize(0)
      {
         // Do some stuff...
      }
      int getRowSize() { return rowSize; };
      int getColSize() { return colSize; };
      virtual ~Matrix();
  };
} // End matrix namespace

And that about sums it up! Looks pretty good I think. I highlighted lines 9, 23, and 24 which is neat. On ChromeOS, as I add more and more lines, there is some weird offset that gets worse and worse SO that after about 30 lines, the numbering is off by a whole line. Might work on that at some point but not now.