Format code blocks of various languages

by iVariable
5
4
3
2
1
Score: 27/100

Description

Category: Coding & Technical Tools

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.

Reviews

No reviews yet.

Stats

25
stars
12,137
downloads
5
forks
1,510
days
1,212
days
1,512
days
3
total PRs
1
open PRs
1
closed PRs
1
merged PRs
4
total issues
4
open issues
0
closed issues
0
commits

Latest Version

4 years ago

Changelog

Proof of concept Just basic formatting: json, yaml, ts, html, graphql

README file from

Github

Obsidian Format Code plugin

This is a plugin for Obsidian that introduces custom commands to format code.

Currently supports the following languages:

  • JSON
  • YAML
  • HTML
  • GraphQL
  • TypeScript

Prettier is used under the hood.

How to use

How to use

How to install

Until this plugin is not published in the Obsidian ecosystem you can install it using How to develop instructions

How to develop

  1. Clone the repository to .obsidian/plugins/obsidian-format-code
  2. npm i
  3. npm run dev
  4. Launch Obsidian
  5. Enable plugin in the Obsidian settings under "Community plugins" > "Installed plugins"" >"Format code"

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.