On Habré several times published information about Zen Coding , which can be connected to many code editors in order to speed up the layout of HTML and CSS code. One of these editors is NetBeans , which, however, does not work with ZEN CSS.
Not wanting to put up with this state of affairs, I, as in the case of Notepad ++ , wrote macros for the most frequently used records in order to save precious seconds (and too lazy to honestly write all the properties).
Examples:
Alt + C bb TAB - border-bottom: 1px solid # FFF *;
Alt + C p TAB - position: relative *; top: 0; left: 0;
Alt + C fw TAB - font-weight: 900 *;
Alt + C tb TAB - text-decorarion: underline *;
Alt + C bg TAB - background: #FFF url (../ images / bg.png) repeat-x 0 0;
* - crossed out showing the characters that will be allocated to change
')
Perhaps, looking at such a combination, it would seem that it is cumbersome, but personally I quickly mastered it. Maybe someone will have suggestions for improving the combinations.
A total of 18 combinations are written at the moment, most likely something else will be added, suggest options.
This file should be thrown into c:\Users\habrauser\.netbeans\6.9\config\Editors\Macros\ (if you already have your own macros - be careful when copying, overwritten).
Even in NetBeans, there is such a cool thing as code templates , which are superior to macros, they work great in PHP, I could not master them in CSS :(
I would be grateful for useful tips and additions to the above. As ideas arrive (one’s own or others’s), the macro will be updated.
PS: In macros there is also a quick entry of font sets such as Verdana, Geneva, sans-serifAlt + C font v TAB combination. Do you need them?
PSS: A big request to the habrovans is not to describe the advantages of their favorite editor% editor% over NetBeans, the post is not about that.
UPD: After 4 months, stayed with Netbeans and expanded the set of macros.
New macros can be downloaded and copied .xml in c: \ Users \ your_name \ .netbeans \ 6.9 \ config \ Editors \ Macros \