DEV Community

Discussion on: Should Pure Functions Be Self-contained

Collapse
 
geolamp profile image
George Lampadaridis

I messed up the code format. Used from stack overflow... Sorry for asking this here, how can I format code in a comment?

Thread Thread
 
vonheikemen profile image
Heiker • Edited

The syntax highlight can be activated with a block closed in triple backticks, and optionaly a language name. Like this:

```javascript
console.log('hello');
// some code
```

Thread Thread
 
geolamp profile image
George Lampadaridis

Thank you sir. Sorry for the irrelevant question again.