Dan

May
16
comment C preprocessor commands in listings package
Thanks, Peter. This works and my code is highlighted correctly now. Interestingly, you cannot define # as a keyword using morekeywords={\#}, but you can define it as a keyword using otherkeywords{\#}.
May
16
awarded Scholar
May
16
accepted C preprocessor commands in listings package
May
16
awarded Student
May
16
comment C preprocessor commands in listings package
Sorry, you are right. I had indents on every line. There should only be indents on the fourth line of the lstlisting.
May
16
revised C preprocessor commands in listings package
deleted 17 characters in body
May
16
comment C preprocessor commands in listings package
It is not in color by default, but it is bolded. The second one is not bolded.
May
16
awarded Editor
May
16
revised C preprocessor commands in listings package
added 228 characters in body
May
16
asked C preprocessor commands in listings package