The Format code blocks of various languages plugin enhances Obsidian's code formatting capabilities by introducing custom commands to format code in several programming languages. Using Prettier, the plugin currently supports languages like JSON, YAML, HTML, GraphQL, and TypeScript. It automatically formats code blocks within your notes to ensure they are properly structured and easy to read. This tool is useful for developers and anyone working with code in Obsidian, improving code readability and reducing formatting errors. The plugin integrates seamlessly into the Obsidian environment with simple commands that can be easily accessed.
Proof of concept
Just basic formatting: json, yaml, ts, html, graphql