-
1. Re: Hi, I want to format my code php (beautiful), Please help me
Herbert2001 Nov 6, 2014 7:51 PM (in response to pckhien)There is an option in the Commands menu,
Click the Format Source Code icon at the bottom of the Coding toolbar (Edit > Toolbars > Coding) and select Code Format Settings to set your preferred formatting.
You can also access the formatting option from Commands > Apply Source Formatting or only apply it to a select block of code by selecting the Apply Source Formatting to Selection option.
However, do not expect the level of "beautiful code formatting" like in NetBeans, Sublime Text, etc. DW does a decent enough job, albeit with rough edges.
-
2. Re: Hi, I want to format my code php (beautiful), Please help me
pckhien Nov 6, 2014 8:56 PM (in response to Herbert2001)Tks.
I usually use " Commands > Apply Source Formatting" but i think it only support for HTML, CSS. With PHP, I can't use Apply Source Formatting.
I want find a Plugin what cant help me beautiful code php? Do you know? help me!
-
3. Re: Hi, I want to format my code php (beautiful), Please help me
Herbert2001 Nov 6, 2014 11:41 PM (in response to pckhien)I know of some plugins in the past that would do Javascript formatting (something DW still does not do well), and I looked for you, but they no longer seem to be available :-(
DW only does html and css formatting, as far as I know.
For php, javascript, less, sass, etc. - well, no, no idea. Sorry. Perhaps keep SublimeText running side by side of Dreamweaver, and copy the code back and forth once in a while from DW to SublimeText to format it? Still faster than doing it by hand.
-
4. Re: Hi, I want to format my code php (beautiful), Please help me
Herbert2001 Nov 7, 2014 12:42 AM (in response to pckhien)The only plugin for php I could find, is this one:
http://www.formatcode.com/code-formatter-php.htm
However, I feel it is a bit ridiculous that you would have to pay extra money for proper php code formatting. Also, the site looks very old, and I was unable to open the payment screen to check how much exactly those plugins cost - yes, you are supposed to purchase multiple licenses: one for php, one for javascript... crazy!

