Project
Useful for programming!
Help
- The
code format[]block formats the code by indenting the block from]]]to[[[. - The
code unformat[]block unformats the code by wrapping the indents by]]]and[[[.
Useful for programming!
code format[] block formats the code by indenting the block from ]]] to [[[.code unformat[] block unformats the code by wrapping the indents by ]]] and [[[.I have never seen a single programming language use TRIPLE BRACKETS ([[[ and ]]])
You wouldn’t write text code like this, right?
if ((( [[["something", "string"]]].includes("something") ))) {{{
doSomething()
}}}
![]()
It makes indentation, not display literal brackets
function f(x) {
]]]
return Math.pow(x, 2);
[[[
}
This code is transformed into:
function f(x) {
return Math.pow(x, 2);
}
Update: Python code unformatting is available!
Yeah, but code formatters just take
function f(x){
return Math.
pow(x
, 2)
;
}
and format that, no one formats code by manually putting where the indents should be!