4

Posts often include compiler errors, e.g., 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?

4
  • 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 StaffMod
    Apr 19, 2012 at 6:13
  • 4
    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. Apr 19, 2012 at 6:29
  • I'm inclined to agree with @JoachimSauer, also because I only ever read it on my terminal.
    – Shep
    Apr 19, 2012 at 6:33
  • @Joachim: I'd be inclined to upvote if you (re-)posted that as an answer, sir. Apr 20, 2012 at 2:13

1 Answer 1

1

According to Joachim Sauer in this comment:

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .