Skip to main content
added syntax-highlighted screenshot of the code in the post and removed the duplicated code that was supposed to showcase the syntax highlighting because it isn't highlighted in meta
Source Link

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
```

so that the code block is colored (syntax highlighted) appropriately:

#!/bin/bash
echo "something"
sleep 10
exit

syntax highlighted code

I think the system can also color the code automatically by "guessing" about the contents of the code (I may be wrong about this).

Is there a complete list of all the "languages" (like bash, c, python, etc.) supported in AskUbuntu? There are cases where I do not want any coloring, like a simple text data; how can I indicate this?

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
```

so that the code block is colored (syntax highlighted) appropriately:

#!/bin/bash
echo "something"
sleep 10
exit

I think the system can also color the code automatically by "guessing" about the contents of the code (I may be wrong about this).

Is there a complete list of all the "languages" (like bash, c, python, etc.) supported in AskUbuntu? There are cases where I do not want any coloring, like a simple text data; how can I indicate this?

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
```

so that the code block is colored (syntax highlighted) appropriately:

syntax highlighted code

I think the system can also color the code automatically by "guessing" about the contents of the code (I may be wrong about this).

Is there a complete list of all the "languages" (like bash, c, python, etc.) supported in AskUbuntu? There are cases where I do not want any coloring, like a simple text data; how can I indicate this?

deleted 1 character in body
Source Link
FedKad
  • 12.3k
  • 6
  • 7

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
```

so that the code block is colored (syntax highlighted) appropriately:

#!/bin/bash
echo "something"
sleep 10
exit

I think the system can also color the code automatically by "guessing" about the contents of the code (I may be wrong about this).

Is there a complete list of all the "languages" (like bash, c, python, etc.) supported in AskUbuntu? There are cases where I do not want any coloring, like a simple text data; how can I indicate this?

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
```

so that the code block is colored (syntax highlighted) appropriately:

#!/bin/bash
echo "something"
sleep 10
exit

I think the system can also color the code automatically by "guessing" about the contents of the code (I may be wrong about this).

Is there a complete list of all the "languages" (like bash, c, python, etc.) supported in AskUbuntu? There are cases where I do not want any coloring, like a simple text data; how can I indicate this?

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
```

so that the code block is colored (syntax highlighted) appropriately:

#!/bin/bash
echo "something"
sleep 10
exit

I think the system can also color the code automatically by "guessing" about the contents of the code (I may be wrong about this).

Is there a complete list of all the "languages" (like bash, c, python, etc.) supported in AskUbuntu? There are cases where I do not want any coloring, like a simple text data; how can I indicate this?

added 6 characters in body
Source Link
Artur Meinild
  • 29.4k
  • 8
  • 24

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
```

so that the code block is colored (syntax highlighted) appropriately:

#!/bin/bash
echo "something"
sleep 10
exit

I think the system can also color the code automatically by "guessing" about the contents of the code (I may be wrong about this).

Is there a complete list of all the "languages" (like bash, c, python, etc.) supported in AskUbuntu? There are cases where I do not want any coloring, like a simple text data; how can I indicate this?

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
```

so that the code block is colored (syntax highlighted) appropriately:

#!/bin/bash
echo "something"
sleep 10
exit

I think the system can also color the code automatically by "guessing" about the contents of the code (I may be wrong about this).

Is there a complete list of all the "languages" (like bash, c, python, etc.) supported in AskUbuntu? There are cases where I do not want any coloring, like a simple text data; how can I indicate this?

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
```

so that the code block is colored (syntax highlighted) appropriately:

#!/bin/bash
echo "something"
sleep 10
exit

I think the system can also color the code automatically by "guessing" about the contents of the code (I may be wrong about this).

Is there a complete list of all the "languages" (like bash, c, python, etc.) supported in AskUbuntu? There are cases where I do not want any coloring, like a simple text data; how can I indicate this?

Source Link
FedKad
  • 12.3k
  • 6
  • 7
Loading