Trevixal API
    Preparing search index...
    • Reformat the code block holding the selection, in place. Declines (returns null) when the block is another language, when the source does not parse, and when the result is identical, so a chained command can take over and the history gets no empty entry.

      A block with no language is formatted when it parses, and takes the language it turned out to be: the highlighter guesses one to colour it without writing it down, so a block that looked like JSON was refused. So are paragraphs, pasted from somewhere that sent the JSON as lines of text: the selected ones become one code block.

      Parameters

      Returns Command