Glavin001 / atom-beautify

:mega: Help Wanted - Looking for Maintainer: https://github.com/Glavin001/atom-beautify/issues/2572 | :lipstick: Universal beautification package for Atom editor (:warning: Currently migrating to https://github.com/Unibeautify/ and have very limited bandwidth for Atom-Beautify Issues. Thank you for your patience and understanding :heart: )
http://unibeautify.com/
MIT License
1.5k stars 453 forks source link

beautify HOCON #971

Open fksimon opened 8 years ago

fksimon commented 8 years ago

Description

Atom Beautify could not determine a supported beautifier to handle this file with grammar "HOCON" and extension "conf".

Expected Results

The code is basically similar to a JSON format though a JSON validator will fail it can be formatted using the same syntax. For example right now I use http://jsonlint.com/ to format even though the validation fails.

Example:

simulator {

kafka_settings{ service-discovery{ enabled=false } producer_sinks{ producer-sink-1 { threadpool.name.prefix = "simulator" batch.size = 0 retries = 0 acks = "all" linger.ms = 1 buffer.memory = 33554432 number.of.producer.threads = 1 } } consumer_sources{ consumer-source-1{ group.id = "ackReader" poll.interval = 200 enable.auto.commit = "true" auto.commit.interval.ms = 1000 } } }

meyerzinn commented 8 years ago

Definitely second this. There's already a language-hocon, but this would make my life easier. 😄

prettydiff commented 8 years ago

One of you just needs to submit a pull request with some minor modifications to some Atom Beautify configuration files to add some support. Here is some quick guidance: https://github.com/Glavin001/atom-beautify/wiki/Add-an-unsupported-language-using-an-existing-beautifier