I've searched the forums and read as much of the documentation as I could, and I cannot find a straight-forward answer to my question. I'm trying to color specific tags and elements associated with those tags.
Using <form></form> tags as an example: I'd like to color these tags and all the elements within them a bright yellow.
Any help would be greatly appreciated.
On Jan 24, 2011, at 7:21 AM, commonmind wrote:
I've searched the forums and read as much of the documentation as I could, and I cannot find a straight-forward answer to my question. I'm trying to color specific tags and elements associated with those tags.
You can adjust one of the pre-installed themes or create your own.
http://manual.macromates.com/en/themes
There are also some out there available for download. You might want to search around before starting from scratch.
If you want to tweak an existing theme, use ⇧⌃P at the start of the form element to check it's scope. Then muck about you current theme and look for the color that controls that scope. Maybe make a copy of that setting and remove all but that scope from it, then color it as you wish.
It takes a bit to get used to but before long you'll be making your own full-on theme. :)
Adam Merrifield seyDoggy Systems seydoggy.com
820 Strasburg rd, Kitchener, Ontario, N2E 2Y3, Canada
Email: info@seydoggy.com Office: 519-489-6033 Cell: 519-574-9788
On Jan 24, 2011, at 7:47 AM, Rob McBroom wrote:
On Jan 24, 2011, at 7:21 AM, commonmind wrote:
I've searched the forums and read as much of the documentation as I could, and I cannot find a straight-forward answer to my question. I'm trying to color specific tags and elements associated with those tags.
You can adjust one of the pre-installed themes or create your own.
http://manual.macromates.com/en/themes
There are also some out there available for download. You might want to search around before starting from scratch.
-- Rob McBroom http://www.skurfer.com/
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Thanks, Rob. I've actually already looked at the documentation for theming and building my own custom theme...that's sort of the meta issue here. What I'm trying to figure out is how to target the <form></form> selector; I've tried entering several different strings in the Scope Selector form, after creating a custom entry for the Form tag -- but nothing seems to work.
"form" is not a unique entity in and of itself. It has a common scope to other html elements that must contain other components like lists, etc:
entity.name.tag.block.any.html
Adam Merrifield seyDoggy Systems seydoggy.com
820 Strasburg rd, Kitchener, Ontario, N2E 2Y3, Canada
Email: info@seydoggy.com Office: 519-489-6033 Cell: 519-574-9788
On Jan 24, 2011, at 8:20 AM, commonmind wrote:
Thanks, Rob. I've actually already looked at the documentation for theming and building my own custom theme...that's sort of the meta issue here. What I'm trying to figure out is how to target the <form></form> selector; I've tried entering several different strings in the Scope Selector form, after creating a custom entry for the Form tag -- but nothing seems to work.
-- View this message in context: http://old.nabble.com/How-to-change-%3Cform%3E-tag-coloring--tp30747855p3074... Sent from the textmate users mailing list archive at Nabble.com.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
So, simply put, there really isn't a way to target the specific tag...
That's disappointing -- not a deal breaker, but a little upsetting nonetheless. I loathe Dreamweaver as an application (although I know it suits some users' needs), but I have always liked its code formatting (form elements, for instance, are colored a bright, golden yellow).
Thanks for the help. I really do appreciate you taking the time, Adam.
On Mon, Jan 24, 2011 at 9:46 AM, Merrifield Adam macagp@gmail.com wrote:
"form" is not a unique entity in and of itself. It has a common scope to other html elements that must contain other components like lists, etc:
entity.name.tag.block.any.html
Adam Merrifield seyDoggy Systems seydoggy.com
820 Strasburg rd, Kitchener, Ontario, N2E 2Y3, Canada
Email: info@seydoggy.com Office: 519-489-6033 Cell: 519-574-9788
On Jan 24, 2011, at 8:20 AM, commonmind wrote:
Thanks, Rob. I've actually already looked at the documentation for
theming
and building my own custom theme...that's sort of the meta issue here.
What
I'm trying to figure out is how to target the <form></form> selector;
I've
tried entering several different strings in the Scope Selector form,
after
creating a custom entry for the Form tag -- but nothing seems to work.
-- View this message in context:
http://old.nabble.com/How-to-change-%3Cform%3E-tag-coloring--tp30747855p3074...
Sent from the textmate users mailing list archive at Nabble.com.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
So, simply put, there really isn't a way to target the specific tag…
Correct.
Adam Merrifield seyDoggy Systems seydoggy.com
820 Strasburg rd, Kitchener, Ontario, N2E 2Y3, Canada
Email: info@seydoggy.com Office: 519-489-6033 Cell: 519-574-9788
On Jan 24, 2011, at 9:53 AM, Joey wrote:
So, simply put, there really isn't a way to target the specific tag...
That's disappointing -- not a deal breaker, but a little upsetting nonetheless. I loathe Dreamweaver as an application (although I know it suits some users' needs), but I have always liked its code formatting (form elements, for instance, are colored a bright, golden yellow).
Thanks for the help. I really do appreciate you taking the time, Adam.
On Mon, Jan 24, 2011 at 9:46 AM, Merrifield Adam macagp@gmail.com wrote: "form" is not a unique entity in and of itself. It has a common scope to other html elements that must contain other components like lists, etc:
entity.name.tag.block.any.html
Adam Merrifield seyDoggy Systems seydoggy.com
820 Strasburg rd, Kitchener, Ontario, N2E 2Y3, Canada
Email: info@seydoggy.com Office: 519-489-6033 Cell: 519-574-9788
On Jan 24, 2011, at 8:20 AM, commonmind wrote:
Thanks, Rob. I've actually already looked at the documentation for theming and building my own custom theme...that's sort of the meta issue here. What I'm trying to figure out is how to target the <form></form> selector; I've tried entering several different strings in the Scope Selector form, after creating a custom entry for the Form tag -- but nothing seems to work.
-- View this message in context: http://old.nabble.com/How-to-change-%3Cform%3E-tag-coloring--tp30747855p3074... Sent from the textmate users mailing list archive at Nabble.com.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 24 January 2011 15:53, Joey commonmind@gmail.com wrote:
So, simply put, there really isn't a way to target the specific tag...
Well, maybe "simply put". But you can of course change the language definition to add support for whatever custom elements you want.
For example, to get support for form coloring you can add this at the start of the pattern definition in HTML:
{ name = 'meta.tag.block.form.html'; begin = '(</?)((?i:form)\b)'; end = '(>)'; beginCaptures = { 1 = { name = 'punctuation.definition.tag.begin.html'; }; 2 = { name = 'entity.name.tag.block.form.html'; }; }; endCaptures = { 1 = { name = 'punctuation.definition.tag.end.html'; }; }; patterns = ( { include = '#tag-stuff'; } ); },
and then use entity.name.tag.block.form.html in your theme to color the form tag. Depending on how you want it to look, you may have to add other patterns to your theme.
I shy away from messing with the language definitions but this is certainly a brilliant tip.
Adam Merrifield seyDoggy Systems seydoggy.com
820 Strasburg rd, Kitchener, Ontario, N2E 2Y3, Canada
Email: info@seydoggy.com Office: 519-489-6033 Cell: 519-574-9788
On Jan 24, 2011, at 11:02 AM, Sven Axelsson wrote:
On 24 January 2011 15:53, Joey commonmind@gmail.com wrote:
So, simply put, there really isn't a way to target the specific tag...
Well, maybe "simply put". But you can of course change the language definition to add support for whatever custom elements you want.
For example, to get support for form coloring you can add this at the start of the pattern definition in HTML:
{ name = 'meta.tag.block.form.html'; begin = '(</?)((?i:form)\b)'; end = '(>)'; beginCaptures = { 1 = { name = 'punctuation.definition.tag.begin.html'; }; 2 = { name = 'entity.name.tag.block.form.html'; }; }; endCaptures = { 1 = { name = 'punctuation.definition.tag.end.html'; }; }; patterns = ( { include = '#tag-stuff'; } ); },
and then use entity.name.tag.block.form.html in your theme to color the form tag. Depending on how you want it to look, you may have to add other patterns to your theme.
-- Sven Axelsson ++++++++++[>++++++++++>+++++++++++>++++++++++>++++++
++++<<<<<-]>++++.+.++++.>+++++.>+.<<-.>>+.>++++.<<.
+++.>-.<<++.>>----.<++.>>>++++++.<<<<.>>++++.<----.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate