What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 138 Stack Exchange communities.

Posts often include compiler errors, i.e. from this post

In file included from A.cpp:2:
List.h:20: error: ‘List’ is not a template type
A.cpp: In member function ‘void A::NowyObiekt(int)’:
A.cpp:6: error: ‘list_a’ was not declared in this scope
make: *** [A.o] Error 1

In this case I've explicitly added a <!-- language: lang-cc -->, because the question is tagged as C++ which forces the above highlighting.

It looks a bit funny to me, though. How should this be highlighted?

share|improve this question
As long as it's readable, highlight it any way you want. I often add the CSS highlight comment when someone uses an ID selector or color code and it greys out the entire line. That light grey text is harder to read. You can also specify none (or similar) to make it not highlight at all. –  animuson Apr 19 '12 at 6:13
I don't think it should be syntax highlighted at all. Compiler output is generally pretty unstructured and even if there is structure, it's definitely per-compiler, so you usually can't even decide based on the language tags. –  Joachim Sauer Apr 19 '12 at 6:29
I'm inclined to agree with @JoachimSauer, also because I only ever read it on my terminal. –  Shep Apr 19 '12 at 6:33
@Joachim: I'd be inclined to upvote if you (re-)posted that as an answer, sir. –  Cody Gray Apr 20 '12 at 2:13

You must log in to answer this question.

Browse other questions tagged .