Questions tagged [code-formatting]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4 votes
1 answer
150 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 ...
user avatar
  • 1,951
21 votes
1 answer
286 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 ...
user avatar
  • 34.4k
2 votes
3 answers
90 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 ...
user avatar
  • 34.4k
0 votes
1 answer
180 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 ...
user avatar
-3 votes
2 answers
72 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 ...
user avatar
  • 1,233