Link a stylesheet with Eclipse / Aptana
L.S.,
I'm using Eclipse with the Aptana Studio-plugin. I wish to create a link to a stylesheet in my html-document. Now I was 开发者_如何学运维hoping there would be a feature (similar to Dreamweaver) that could automatically genereate/insert the link tag and attributes. Say I would right-click on the stylesheet in question, and then select an option "link to" and it would insert the tag in my html-file.
Does such an option exist? I'm relatively new to Eclipse/Aptana, and I have not been able to find it so far. (I'd imagine this feature would work for javascripts files as well?)
Much obliged.
There is no such feature in Aptana Studio yet. You could file a request for this at http://jira.appcelerator.org/browse/APSTUD though.
As an alternative way you could do some manual typing in editor with help form code assist. It will help you on tag/attribue names as well as it will list possible filenames for href attribute.
Cheers, Max
In Visual studio you can grab a stylesheet from the solution explorer and drag it in your html file. This creates the link element automatically. Maybe it's the same in Aptana?
精彩评论