Andr3as / Codiad-Beautify

Beautify js, json, html, css or php files
7 stars 3 forks source link

Allman style does not work #11

Open Lord-Y opened 7 years ago

Lord-Y commented 7 years ago

Hey,

First aval, good job. Next thing is Allman style does not work after modifying plugins/Codiad-Beautify-master/default.settings.json file by putting expand. Can you check?

Andr3as commented 7 years ago

If there is an config file in data/config/beautify.settings.php, you have to edit this one. This solutions isn't really good, maybe I have some time to create a better one.

Lord-Y commented 7 years ago

Yeah that what I did but it didn't work as expected.

You can try this sample code:

foreach($tools as $key => $tool) { print "<a href=\"/".$key. "\">".$tool['name']. "
"; if ($a == $b) { print $this; } }

foreach($tools as $key => $tool) { print "<a href=\"/".$key. "\">".$tool['name']. "
"; if ($a == $b) { print $this; } }

function plop() { foreach($tools as $key => $tool) { print "<a href=\"/".$key. "\">".$tool['name']. "
"; if ($a == $b) { print $this; } } }

function plopp() { foreach($tools as $key => $tool) { print "<a href=\"/".$key. "\">".$tool['name']. "
"; if ($a == $b) { print $this; } } }

on http://phpbeautifier.com/ with Allman Style and 4 spaces parameters.

If you got time it should be amazing [😊] .

PHP Beautifierhttp://phpbeautifier.com/ phpbeautifier.com Proper formatting makes code easier to read and understand. PHP Beautifier parses your source code and formats it in the style of your choice. Please make a backup ...

Byyye.


De : Andr3as notifications@github.com Envoyé : samedi 17 décembre 2016 23:22 À : Andr3as/Codiad-Beautify Cc : Lord-Y; Author Objet : Re: [Andr3as/Codiad-Beautify] Allman style does not work (#11)

If there is an config file in data/config/beautify.settings.php, you have to edit this one. This solutions isn't really good, maybe I have some time to create a better one.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Andr3as/Codiad-Beautify/issues/11#issuecomment-267793515, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AIbG3gp1MDR-TqgkFtp8j54fhHHsJUuIks5rJG7LgaJpZM4LHSvO.