-
Notifications
You must be signed in to change notification settings - Fork 7.6k
CSS style hints in style attributes #11830
Comments
@igormakovsky This seems to work for me in a .html file. Start by using Otherwise, please provide a |
The example can be dead simple, here it is — file extension is 'html':
|
@igormakovsky I see now that you did say "inline styling", but that's a style attribute (not tag). Unfortunately, that is not yet supported. |
I haven't done any html email authoring in a while, but I think you can define classes in a |
Email authoring is still the same pain in the a**, so it's still best to do it like it's 1999 and just to inline all the styles if you want decent client support. Luckily there are other ways to work around the issue, just as https://github.com/SLaks/Styliner or this inliner tool MailChimp provides: http://templates.mailchimp.com/resources/inline-css/. Lately I have been writing my email templates with React + inline styles and using Not really solutions for original issues, just ideas how to make email authoring a bit more reasonable in 2015 🍨 |
Does anyone know of a extension that can do the same thing? |
I'm not aware of any extensions for this. To implement this, the CodeMirror htmlmixed mode will need to be updated to detect style attributes and switch to CSS mode in the value string. Let me know if you're interested in taking this on would like any more info. |
Thanks for replying. I think I talked with you before on another message about my issue/thoughts. You told me about getting my hand dirty with the code. I did take a crack at it but haven't made much progress with it. Thanks for the help. |
I think this would be great addition to Brackets. Post your code somewhere so we can take a look and try to get it working. This will eventually need to be submitted to CodeMirror and then pulled into Brackets. |
@swmitra I believe this issue can be closed now. |
Thanks a lot @sprintr for the reminder 👍 . I missed this issue completely while authoring the feature. Will close it by putting the reference of the original PR. |
Closing this issue as the requested feature is implemented as part of #13270. |
Old Subject: CSS style hints in
<style>
tagsThey just don't appear when writing inline styling.
That is kind of unavoidable routine for those working with html emails.
The text was updated successfully, but these errors were encountered: