[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Kate Script: JS beautifier
From:       Carlos_Andrés_Jiménez_Chaverri <carlosandresjch () yahoo ! es>
Date:       2014-06-19 17:43:36
Message-ID: 1403199816.83677.YahooMailNeo () web171804 ! mail ! ir2 ! yahoo ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Today I want to share a idea, I am a Javascript developer and usually use \
http://jsbeautifier.org/ to get fancy my JS code. Today I developed a Kate Script to \
do that without use the online application.

Please paste the file like that:
$KDEDIR/share/apps/katepart/script/commands/jsbeautify.js.$KDEDIR/share/apps/katepart/script/libraries/beautifier.js



The code (beautifier.js) is the same as the online app use. Just a couple of changes \
to run with the kate script. The command for kate is "jsbeautifier" (Tools -> Scripts \
-> Js Beatify)

Regards.


[Attachment #5 (text/html)]

<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, \
Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div \
class="" style="">Today I want to share a idea,&nbsp;<span style="background-color: \
transparent;">I am a Javascript developer and usually \
use&nbsp;http://jsbeautifier.org/ to get fancy my JS code.</span></div><div class="" \
style="">Today I developed a <span style="font-style: italic;">Kate Script</span> to \
do that without use the online application.</div><div class="" style=""><br class="" \
style=""></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: \
HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; \
font-style: normal; background-color: transparent;">Please paste the file like \
that:</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: \
HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; \
font-style:  normal; background-color: transparent;"><code class="" \
style="text-align: justify;">$KDEDIR/share/apps/katepart/script/commands/<span \
style="font-weight: bold;">jsbeautify.js</span></code><span style="font-family: \
sans-serif; font-size: 16px; text-align: justify;">.</span><span style="font-family: \
'Courier New'; text-align: justify; font-size: \
12pt;">$KDEDIR/share/apps/katepart/script/libraries/<span style="font-weight: \
bold;">beautifier.js</span></span><br class="" style=""></div><div style="color: \
rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', \
Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: \
transparent;"><span style="font-family: 'Courier New'; text-align: justify; \
font-size: 12pt;"><br class="" style=""></span></div><div class="" style="text-align: \
justify; color: rgb(0, 0, 0); font-size: 16px; font-style: normal; background-color: \
transparent;"><font face="sans-serif" class=""  style="">The code (beautifier.js) is \
the same as the online app use. Just a couple of changes to run with the kate \
script.</font></div><div style="text-align: justify; color: rgb(0, 0, 0); font-size: \
16px; font-style: normal; font-family: sans-serif; background-color: \
transparent;"><font face="sans-serif" class="" style="">The command for kate is \
"jsbeautifier" (Tools -&gt; Scripts -&gt; Js Beatify)</font></div><div \
style="text-align: justify; color: rgb(0, 0, 0); font-size: 16px; font-style: normal; \
font-family: sans-serif; background-color: transparent;"><font face="sans-serif" \
class="" style=""><br class="" style=""></font></div><div style="text-align: justify; \
color: rgb(0, 0, 0); font-size: 16px; font-style: normal; font-family: sans-serif; \
background-color: transparent;"><font face="sans-serif" class="" \
                style="">Regards.</font></div></div></body></html>
---1066824098-1381208308-1403199816=:83677--


["beautifier.js" (application/javascript)]
["jsbeautify.js" (application/javascript)]

_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic