GeSHi Filter for syntax highlighting

The GeSHi filter was installed so that I can provide code snippets with syntax highlighting. This is a test of that capability. Here are some samples:

First, code with lang="cpp-qt"

  1. int TestNestedExceptions::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  2. {
  3.     _id = QObject::qt_metacall(_c, _id, _a);
  4.     if (_id < 0)
  5.         return _id;
  6.     if (_c == QMetaObject::InvokeMetaMethod) {
  7.         switch (_id) {
  8.         case 0: nestTwo(); break;
  9.         default: ;
  10.         }
  11.         _id -= 1;
  12.     }
  13.     return _id;
  14. }

Now, a BASH script.

  1. #!/bin/bash
  2. # declare STRING variable
  3. STRING="Hello World"
  4. #print variable on a screen
  5. echo $STRING