1
\$\begingroup\$

In your opinion, Which code viewer is better?

this is the code viewer of the Stack:

figure 1

and this is another code viewer:

figure2

Really Why doesn't the Stack has a good code viewer?

\$\endgroup\$
1

1 Answer 1

6
\$\begingroup\$

You have two problems. The first is that you're confusing StackExchange with an IDE.

The code highlighting doesn't work on your question here because you have put a whole lot of relatively worthless tags on your question instead of one that defines the language you are using. For example, if you used instead of each individual microcontroller you used, you wouldn't have an issue. I have changed your tags and now syntax highlighting shows up.

\$\endgroup\$
3
  • 1
    \$\begingroup\$ WoW! Thanks, the stack is really clever! \$\endgroup\$
    – Roh
    Commented Jul 17, 2014 at 3:14
  • 1
    \$\begingroup\$ Ultimately the purpose of tags is primarily to organize topics by relevance, so one should really use the language hinting code rather than a tag if highlighting is the only goal. \$\endgroup\$ Commented Jul 18, 2014 at 18:14
  • 2
    \$\begingroup\$ @Roh A better way to enable appropriate syntax highlighting (code coloring) is to prefix the code block with <!-- language: lang-c -->. Here's an example (you should look at the text in edit mode). Full list of syntax highlighting options here. \$\endgroup\$
    – Nick Alexeev Mod
    Commented Jul 19, 2014 at 21:25

You must log in to answer this question.

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