Posts Tagged ‘syntax’

vim syntax highlighting file type

September 8, 2010

When editing with vim the syntax highlighting will occasionally not turn on.  Here’s the command to turn it on.

:set filetype=make

In this example it sets the file type to a Makefile file type. Replace the type as appropriate.

Advertisements

Function pointer calling convention

June 26, 2009

I always forget the syntax for adding calling convention to a function pointer typedef. Here it is.

typedef int (__stdcall *MYFUNC) (int, int);