Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
Note that, by declaring sh as the language, you have implicitly declared "a # introduces a comment", because that's what is implied by the sh syntax. But you say you don't want that interpretation...
Answer
#7: Post edited
- Note that, by declaring `sh` as the language, you have implicitly declared "a `#` introduces a comment", because that's what is implied by the `sh` syntax.
But you say you don't want that interpretation. Therefore, **the text you're formatting is not valid `sh` language text**.- So, to avoid `sh` interpretation of your text, you need to avoid declaring `sh` as the language of your text.
- Rather, you are presenting a plain text example: text that the person might see in their terminal console, including the `#` prompt before input.
- That's done with the `console` declaration (maybe others).
- ```console
- # echo hi
- ```
- ```console
- # echo hi
- ```
- Note that, by declaring `sh` as the language, you have implicitly declared "a `#` introduces a comment", because that's what is implied by the `sh` syntax.
- But you say you don't want that interpretation. Therefore, **the text you're formatting should not be interpreted as `sh` language text**.
- So, to avoid `sh` interpretation of your text, you need to avoid declaring `sh` as the language of your text.
- Rather, you are presenting a plain text example: text that the person might see in their terminal console, including the `#` prompt before input.
- That's done with the `console` declaration (maybe others).
- ```console
- # echo hi
- ```
- ```console
- # echo hi
- ```
#6: Post edited
- Note that, by declaring `sh` as the language, you have implicitly declared "a `#` introduces a comment", because that's what is implied by the `sh` syntax.
- But you say you don't want that interpretation. Therefore, **the text you're formatting is not valid `sh` language text**.
- So, to avoid `sh` interpretation of your text, you need to avoid declaring `sh` as the language of your text.
Rather, you are presenting a plain text example: text that the person might see in their terminal including the `#` prompt before input.That's done with the `plaintext` declaration (maybe others).```plaintext- # echo hi
- ```
```plaintext- # echo hi
- ```
- Note that, by declaring `sh` as the language, you have implicitly declared "a `#` introduces a comment", because that's what is implied by the `sh` syntax.
- But you say you don't want that interpretation. Therefore, **the text you're formatting is not valid `sh` language text**.
- So, to avoid `sh` interpretation of your text, you need to avoid declaring `sh` as the language of your text.
- Rather, you are presenting a plain text example: text that the person might see in their terminal console, including the `#` prompt before input.
- That's done with the `console` declaration (maybe others).
- ```console
- # echo hi
- ```
- ```console
- # echo hi
- ```
#5: Post edited
- Note that, by declaring `sh` as the language, you have implicitly declared "a `#` introduces a comment", because that's what is implied by the `sh` syntax.
But you say you don't want that interpretation. Therefore, the text you're formatting is not valid `sh` language text.So, you don't actually want to declare `sh` as the language of your text, because you are not intending that it be valid `sh` language.- Rather, you are presenting a plain text example: text that the person might see in their terminal including the `#` prompt before input.
- That's done with the `plaintext` declaration (maybe others).
- ```plaintext
- # echo hi
- ```
- ```plaintext
- # echo hi
- ```
- Note that, by declaring `sh` as the language, you have implicitly declared "a `#` introduces a comment", because that's what is implied by the `sh` syntax.
- But you say you don't want that interpretation. Therefore, **the text you're formatting is not valid `sh` language text**.
- So, to avoid `sh` interpretation of your text, you need to avoid declaring `sh` as the language of your text.
- Rather, you are presenting a plain text example: text that the person might see in their terminal including the `#` prompt before input.
- That's done with the `plaintext` declaration (maybe others).
- ```plaintext
- # echo hi
- ```
- ```plaintext
- # echo hi
- ```
#4: Post edited
- Note that, by declaring `sh` as the language, you have implicitly declared "a `#` introduces a comment", because that's what is implied by the `sh` syntax.
- But you say you don't want that interpretation. Therefore, the text you're formatting is not valid `sh` language text.
- So, you don't actually want to declare `sh` as the language of your text, because you are not intending that it be valid `sh` language.
- Rather, you are presenting a plain text example: text that the person might see in their terminal including the `#` prompt before input.
- That's done with the `plaintext` declaration (maybe others).
- ```plaintext
echo hi- ```
- ```plaintext
- # echo hi
- ```
- Note that, by declaring `sh` as the language, you have implicitly declared "a `#` introduces a comment", because that's what is implied by the `sh` syntax.
- But you say you don't want that interpretation. Therefore, the text you're formatting is not valid `sh` language text.
- So, you don't actually want to declare `sh` as the language of your text, because you are not intending that it be valid `sh` language.
- Rather, you are presenting a plain text example: text that the person might see in their terminal including the `#` prompt before input.
- That's done with the `plaintext` declaration (maybe others).
- ```plaintext
- # echo hi
- ```
- ```plaintext
- # echo hi
- ```
#3: Post edited
- Note that, by declaring `sh` as the language, you have implicitly declared "a `#` introduces a comment", because that's what is implied by the `sh` syntax.
- But you say you don't want that interpretation. Therefore, the text you're formatting is not valid `sh` language text.
- So, you don't actually want to declare `sh` as the language of your text, because you are not intending that it be valid `sh` language.
- Rather, you are presenting a plain text example: text that the person might see in their terminal including the `#` prompt before input.
That's done with the `plaintext` language (maybe others).- ```plaintext
- # echo hi
- ```
- Note that, by declaring `sh` as the language, you have implicitly declared "a `#` introduces a comment", because that's what is implied by the `sh` syntax.
- But you say you don't want that interpretation. Therefore, the text you're formatting is not valid `sh` language text.
- So, you don't actually want to declare `sh` as the language of your text, because you are not intending that it be valid `sh` language.
- Rather, you are presenting a plain text example: text that the person might see in their terminal including the `#` prompt before input.
- That's done with the `plaintext` declaration (maybe others).
- ```plaintext
- echo hi
- ```
- ```plaintext
- # echo hi
- ```
#2: Post edited
- Note that, by declaring `sh` as the language, you have implicitly declared "a `#` introduces a comment", because that's what is implied by the `sh` syntax.
So, you don't actually want `sh` as the language of your text, because you are not intending that it be valid `sh` language.- Rather, you are presenting a plain text example: text that the person might see in their terminal including the `#` prompt before input.
- That's done with the `plaintext` language (maybe others).
- ```plaintext
- # echo hi
- ```
- Note that, by declaring `sh` as the language, you have implicitly declared "a `#` introduces a comment", because that's what is implied by the `sh` syntax.
- But you say you don't want that interpretation. Therefore, the text you're formatting is not valid `sh` language text.
- So, you don't actually want to declare `sh` as the language of your text, because you are not intending that it be valid `sh` language.
- Rather, you are presenting a plain text example: text that the person might see in their terminal including the `#` prompt before input.
- That's done with the `plaintext` language (maybe others).
- ```plaintext
- # echo hi
- ```
#1: Initial revision
Note that, by declaring `sh` as the language, you have implicitly declared "a `#` introduces a comment", because that's what is implied by the `sh` syntax. So, you don't actually want `sh` as the language of your text, because you are not intending that it be valid `sh` language. Rather, you are presenting a plain text example: text that the person might see in their terminal including the `#` prompt before input. That's done with the `plaintext` language (maybe others). ```plaintext # echo hi ```