Logo for FormatBot

Upvote FormatBot


FormatBot is a bot for code formatting on Discord. Currently it supports formatting JavaScript, TypeScript, CSS, HTML, C/C++, JSON/YAML, Rust, C# and Java.

Back to FormatBot

FormatBot is a code formatting bot that works using context menu interactions.

The interface for the formatters is easily extendable and more languages can be added with ease.

The bot is very simple to use. Simply post some badly formatted code such as

```js

if (a) {
b=c;
function foo(d) {
e=f;
}
}

if (a) {
b=c;
function foo(d) {
e=f;
}
}

foo
.bar
.baz()

```

The bot will detect the language from the given language key. To format, you simply right click on the message and click Apps -> Format

Commands:
Right-click message with a code block -> Apps -> Format to format the code block.

format!status to get bot status.

Check out the home page for the full Discord Bot List.