Skip to content

A JSON formatter prettifier, minifier and validator plugin for Geany editor

License

Notifications You must be signed in to change notification settings

zhgzhg/Geany-JSON-Prettifier

Repository files navigation

JSON Prettifier Plugin for Geany

JSON Prettifier is a plugin used to validate, format and prettify ugly, not formatted JSON files or to minify a prettified ones.

This repository represents an independent project whose results could be manually integrated with Geany.

Features:

  • Pretty formatting

  • Minification formatting

  • Full or partial JSON validation (configurable)

  • Escaping of forward slashes (configurable)

  • Distinguishes separate JSON entities in one file while formatting all of them (configurable)

  • Support for partial formatting limited to the text that is currently selected

  • Indentation format settings (spaces or tabs plus number of symbols)

  • Supported platforms: Linux

  • License: GPLv2 or later

Dependencies:

  • geany
  • geany-devel or geany-common (depending on the distro)
  • gtk+3.0-dev(/el) or gtk+2.0-dev(/el) or libgtk-3-dev(/el) (depending on the distro)
  • make
  • cmake
  • pkg-config
  • yajl, yajl-dev(el) - version 2.1.0 - integrated in this repository

Compilation

To compile run: make

To install (root privileges needed) run: sudo make install

To uninstall (root privileges needed) run: sudo make uninstall

Local to the current account installation

This is an alternative to globally install the plugin for all users. No root privileges needed.

To install for the current account run: make localinstall

To uninstall for the current account run: make localuninstall

Other notes

Attention macOS users - this plugin will work with the manually installed and compiled Geany editor from source code. It will not work with the version installed from dmg files.

Other Useful Plugins