Was a serious question. Was wondering why it wouldn't be so interesting to him. Regex declarative transformations and Python imperative templates would be diff solutions to the same `problem` The latter would be more verbose but I guess more flexible.

There's a certain challenge like fun I'd imagine from doing stuff with the regexes.

It is better to remain silent and be thought a fool, than to speak out and remove all doubt

The below might just qualify as the maddest Snippet seen! If you type 'bbs' it will output 'border-bottom-style'. When you follow this with a space it will display a list of appropriate values. These values will disappear as soon as you type another character. However, if you follow 'bbs' with an underscore _ then the values will remain displayed as you type (up to 8 characters).

I've split the comment over two lines - it looks more professional and doesn't keep jumping between one and two lines. It does mean that you now have two lines to delete, but I figure if you're using this at all then you're likely to key a number of properties at once (so deleting two lines is not such an issue). (Hint: press Escape, then Ctrl-Shift-K twice to delete these lines.)

<snippet> <content><![CDATA[/* propx uses two or three letter abbreviations for many of the css properties, separated by a space. For example, 'to' for top, 'po' for position, 'bbc' for 'border-bottom-color'.You can type values between the abbreviations, but you cannot use quotes, colons or brackets.After you type an abbreviation (and a space) a list of values will be shown. This list will disappearas soon as you type another character, or follow your abbreviation with an underscore to keep thelist visible.If you need to type an abbreviation such as 'le', just split it with a back-slash: 'l\e'.Typing, for example, '3px3' will produce '3px px px', similarly for '3px4'. This works for ems, etc,and percentages.You can backspace as you type, and even edit the line, as long as you remain within the field.Once you've finished, press Escape then Ctrl-Shift-K twice to delete the comment. */]]></content> <tabTrigger>propxh</tabTrigger> <scope>source.css meta.property-list.css</scope> <description>propx help</description></snippet>

"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.

@castlesThank you for your assistance recently. I should also, and am happy to, offer my assistance. But this is perhaps a token gesture as I am only now beginning to look at Python and the plug-ins API. But I could always test things and offer (polite!) suggestions?

{ Python looks wrong to my eye - without a } it lacks closure }

BTW I added two neat little touches to my Snippet: following a value with ! adds ' !important', and finishing with a full-stop '.' collapses the two comment lines into one. But I'm sure readers are bored with my frequent updates - I might wait until someone expresses an interest.

Regards, Andy.

"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.

dreagan wrote:I'm not bored with frequent updates. Updates mean that it's still evolving, still being toyed with. I love to read how it changed over the last couple of days.

Hello, and I appreciate your interest.

Typing ! immediately after a property-value appends ' !important' (even though this isn't generally recommended!). Ending with a full-stop collapses the two comment lines to one - then pressing TAB (or Escape) followed by Ctrl-Shift-K makes it slightly easier to delete the comment. But typing the full-stop is optional.

The extra semi-colon (after the comment) bugs me a little. I should ignore it - after all, we have to delete the line anyway. But I'm a bit obsessive about such things

I would like to be able to type apostrophes and brackets ( ), but I don't think this is possible within a single Snippet. Typing these characters runs macros, which breaks out of the Snippet. I think the user would have to change their settings (key-bindings) to enable this.

Regards, Andy.

"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.