Copy link to clipboard
Copied
Is there a way to automatically format the html code in dreamweaver?
I mean, for example, select the code and automatically get the right alignment of the code like it is possible do in action script.
Is it possible?
Is there a keyboard shortcut?
Thanks.
Copy link to clipboard
Copied
in fact there are differents current feature requests to polish and greatly improve the code formatting / coloring.
you can still have a drop down menu Edit > Code that open a child menu to format and indent the code, AFAIK there is not shortcur for it ?
Copy link to clipboard
Copied
Thank you!
Yes, but it does not work either with the mouse or with the keyboard.
Copy link to clipboard
Copied
I agree that it really need improvment, but at least for HTML, it is more or less indenting the tags correctly... can you post a screen grab ?
Copy link to clipboard
Copied
... or doesn't work?
....
Copy link to clipboard
Copied
JavaScript is not HTML.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Thank you but:
Copy link to clipboard
Copied
Thank you again,
a question:
there is not a shortcuts for comments?
Copy link to clipboard
Copied
Open the Snippets folder. You will find Comments under JavaScript. And you can create a custom Trigger Key for quicker insertion of code snippets.
Learn how to reuse code in Dreamweaver with the Snippets panel
Copy link to clipboard
Copied
From the Common Toolbar (shown below) select Apply Source Formatting. However, you must Edit Tag Libraries 1st to set up your indenting preferences. Personally, I don't like indented code.
Copy link to clipboard
Copied
you're right, when code is indented it is too complex to read it, to clearly see the nested tags, having the starting/ending tag in a first view, well it is definitly better to have a one line code ... arf arf...
Copy link to clipboard
Copied
Thank you both for the reply.
Yes I know those functions but it seams sometime doesn't work properly,
as well as comment that doesn't change in grey color wen I use it.
Sometime (in both the option that you show me work well), when I will get the same problem I try to understand and I will send a screen shot.
Thank you both.
Copy link to clipboard
Copied
the not greyout commented code line is a know bug... well the only workaround is to save the file, or press F5 on code vew... sometimes the only way is to close reopen the file... home code editor will be really improved in the next builds
Copy link to clipboard
Copied
Code colors are controlled by your code Theme's LESS file.
Open the LESS file to edit comment color as desired. Save & close.
.cm-comment {
color: #CCC;
}
Copy link to clipboard
Copied
Thank you! This seems work properly.