Questions tagged [code-formatting]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4 votes
1 answer
194 views

How to properly add code in comment

How can I properly add a line of code in a comment like this test test I like it more grey than test test if that is possible. Or if there is another way to define code in a comment to make it ...
An0n's user avatar
  • 2,119
21 votes
1 answer
290 views

How do I format some code specifically for the language used? Or how do I prevent it from being formatted? Which languages are supported?

If I format some code by indenting it using four spaces, the code is not formatted. How do I format some code specifically for the language used? Or how do I prevent it from being formatted? Which ...
kos's user avatar
  • 35.9k
2 votes
3 answers
93 views

How can I quickly and easily format my code for SE sites' posts?

I usually indent code with tabs, and every time I want to test a snippet before posting it to a SE site I have to reformat it manually before I can post it. Even when I don't use tabs, I need to ...
kos's user avatar
  • 35.9k
0 votes
1 answer
202 views

Code Block Limit of 30000 characters

I came across a question where user had copied the output of a certain command and made a *.docx file out of it. The file was uploaded and the link was provided in the question to this file. I copied ...
Manish Kumar Bisht's user avatar
-3 votes
2 answers
84 views

Presentation of code should include explanation in a separate comment section

This is just an idea and I would like to see what the feedback is. The problem Starting Linux I've found myself many times looking through example code on this site and finding out what it actually ...
CatMan's user avatar
  • 1,399