Questions tagged [code-formatting]
The code-formatting tag has no usage guidance.
5 questions
25
votes
1
answer
458
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 ...
4
votes
1
answer
201
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 ...
2
votes
3
answers
96
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 ...
0
votes
1
answer
209
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 ...
-3
votes
2
answers
91
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 ...