1

Could you set the default syntax highlighting for questions to C++? (unless they contain the or its synonyms)?

Reading through large chucks of poorly formatted code is marginally easier when the syntax highlighting is enabled. But Most questions don't have highlighting enabled.

There are 1004 questions tagged with . That said:

Only 11 questions are flagged with +

134 questions are flagged with +

193 questions are flagged with +.

4
  • It would be interesting to see what happens when two tags are associated to two different highlighting modes, and see which one has the priority.
    – apaderno
    Jul 3 '11 at 2:34
  • 1
    @kiamlaluno: neither. If two tags on a question both have a highlighting syntax defined, the highlighter defaults to autodetect.
    – Shog9
    Jul 3 '11 at 3:21
  • I would think that the CUDA questions I linked to would be auto-detected, but there is no syntax-highlighting. (e.g. here here <-- and both appear to be pretty standard C++ )
    – M. Tibbits
    Jul 3 '11 at 3:24
  • Thank you to whom ever just turned that on!! :O)
    – M. Tibbits
    Jul 3 '11 at 3:25
4

I set the language to "default" (auto-detect - should result in reasonable highlighting for C-like code) for . That shouldn't interfere with anything important (you'll get highlighting now for things like stack traces if you use a code block for them, but that's pretty common anyway - prefix them with <!-- language: lang-none --> if you care).

FWIW, there's no highlighting available for FORTRAN. So the results of cuda+fortran code blocks are a little... interesting. Again, it can be turned off on a per-block basis if necessary.

1
  • Again, thanks! This looks much better!
    – M. Tibbits
    Jul 3 '11 at 3:43

You must log in to answer this question.

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