At 07:31 -0700 on 08/17/2011, davemac wrote about Auto-complete CSS
classes or IDs from a linked CSS file?:
I was asked today if BBEdit can, in a HTML document, auto-complete CSS
classes or IDs from a linked CSS file?
For example, if I have at the top of my HTML5 document:
<link rel="stylesheet" href="{pathto}/stylesheet.css">
is it possible in that document to auto-complete the class or ID tag
with the classes or IDs from the linked CSS?
CSS Style Sheets contain 3 types of rules.
The first is based on matching the tags (or sequence of tags). This
allows you to have a CSS rule that is applied to, for example, all li
tags the are enclosed in ul tags and a different set that are used
for tags that are at the second level of outline (ie: Are enclosed in
a ul tag inside another ul tag). These rules are applied
automatically with no user actions.
The other two types are those that you are talking about (tags with
class= and id= parms). There is NO way that these can be
automatically applied or inserted into the HTML since they get used
when the coder explicitly uses a class= or id= parameter. How do you
plan for BBE to select which class or id is to be applied to the tag
(note that id is allowed to be used ONLY ONCE per page while class is
can be used multiple times). What criteria you you expect BBE to use
to say "ID=X is to be applied to THIS occurrence of a tag"?
--
You received this message because you are subscribed to the
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem,
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>