Skip to main content

Questions tagged [code]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7 votes
1 answer
131 views

List of "languages" to be used in "preformatted" code blocks for "Syntax Highlighting"

When I enter a "preformatted" code block in a body of Q or A, I have the option to specify the language of this code like this: ```bash #!/bin/bash echo "something" sleep 10 exit ``...
10 votes
2 answers
208 views

What should we do to code that is posted in comments of post?

New users of Ask Ubuntu often post outputs of commands in comments (mostly without formatting it as code) when other users ask them for the output of commands. The code needs to be in the question and ...
11 votes
1 answer
187 views

Is it correct that search on AskUbuntu ignores code blocks and inline codes?

Sometimes I want to search posts which mention some-command-name by using `some-command-name` formatting or maybe also multi-line code blocks (<pre>, <code> or Ctrl+K). As of today the ...
8 votes
6 answers
300 views

What is your opinion about outsourcing larger scripts from answers to GitHub repositories?

Occasionally I write larger scripts (sometimes far over 100 lines of code) to answer questions on the site. If I believe they are useful for more people or in more cases than the specific question is ...
6 votes
0 answers
65 views

Please use code fomatting for code, not quotes [duplicate]

This is some thing I see all the time recently and not just from new users. Users are using > to format there code and that is just wrong. Code should be formatted in one of these three ways ...
3 votes
2 answers
106 views

Is there a license on all the code put on SE?

By putting code on SE (by posting it in a question or answer or another form of publicly posting it on the site) is the code given some sort of license automatically if one is not declared by the ...