path | date |
---|---|
/ |
2019-12-21 |
Before asking a coding question on Discord please read the following:
- Please check Google or Stack overflow first If you can't find the solution then please use the coding-help channel in the Discord server. When writing your question please do the following:
- State the problem or desired goal.
- For larger code files, limit the code you post to the targeted issue
- Add any log messages that you think are relevant
- Use 3x backticks before and after your code to format it See below:
Please write your code in a code block.
- Single lines/words/
inline code
.
Wrap the code in single back ticks ' ` <YOUR_CODE> ` ' like this:
$this->isWrappedInSingleBackTicks()
- Multiple lines:
Wrap multiple lines of code in three back ticks ' ``` <YOUR__LONGER__CODE> ``` ' like this:
function thisIsWrappedInThreeBackTicks() {
return [
'formatted_code' => 'is_easier_to_read'
]
}
- Highlight your syntax
Add the programming language to the first back ticks ````php ````
like this:
function thisIsWrappedInThreeBackTicks() {
return [
'formatted_code' => 'is_easier_to_read'
]
}
Or ````css ````
.howToCodeWell{
display:block
}
Or ````js ````
const website = howtocodewell.net
const podcast = howtocodewell.fm
console.log(website)
console.log(podcast)
- To create a new line hold down shift and press enter. Holding the shift key will prevent the message from being sent and it will put your cursor on the next line.