Syntax highlighting for programs

I was looking around for a plugin to highlight syntax for various programming languages, and I hit upon “CodeMirror Blocks.” Here is a silly constified main() declaration for a C or C++ program. (This post is a test of the syntax highlighting plugin.)

int main(const int argc,
         const char *const *const argv,
         const char *const *const envp)
{
  // some code here ...
  return 0; // on success.
}

I don’t mean to propose the actual code here as a serious example, but I do believe that thinking about this sort of thing in an abstract sense may help expose shoddy or careless or inconsistent programming practices, in the hopes of ameliorating such issues of possible bizarreness.

Leave a comment

Your email address will not be published.