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"
int TestNestedExceptions::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QObject::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
switch (_id) {
case 0: nestTwo(); break;
default: ;
}
_id -= 1;
}
return _id;
}
Now, a BASH script.
#!/bin/bash
# declare STRING variable
STRING="Hello World"
#print variable on a screen
echo $STRING