You are viewing limited content. For full access, please sign in.

Question

Question

Feature Request: Format JavaScript and CSS

asked on March 18, 2015 Show version history

Is there a way to format the JavaScript and CSS within Forms after it is typed in? Something similar to what you can do in Visual Studio Edit-> Format Code.

0 0

Replies

replied on March 18, 2015

I too copy/paste in but use Brackets instead of Notepad++. Both can be setup the same way to allow auto-hinting and intellisense for jquery with jHint.

 

In my opinion, if the javascript being pasted into forms is becoming too large and unruly, it's best to leave it as a standalone file, save to the webserver, and use an external reference in the javascript section instead of the full code.

 

After the initial link to the external java script file you can then setup Brackets/Visual Studio/or even Notepad++ to ftp publish directly to the destination so in theory you wouldn't have to use the css/javascript page in Forms at all.

1 0
replied on March 18, 2015

Thanks for the reply Carl. It's not necessarily becoming too large, I'm just anal about it.

0 0
replied on March 19, 2015

Ah 10-4. Well I definitely support your idea of a one click format option instead of manually adding in spaces and dealing with line wraps!

0 0
replied on March 18, 2015

a bit of this used to be in place. it does not seem to work too well anymore. I believe that it should be as simple as finding a jQuery library and adding it to the backend files to allow the webpage to use it in the javascript/css section

0 0
replied on March 18, 2015

I thought I heard something about it in previous versions, but I wasn't able to find a way to do it in the current version.

0 0
replied on March 18, 2015

I usually just copy and paste into notepad++ anyways. It's easier for me, but if that type of formatting were better integrated into the forms page then it would be very useful

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.