Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2006-05-26 23:08:12

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: Colored code for TxP Admin

The snippets are easy.

The grammar is hard.TM supports the Onigurama regex syntax. (with very little documentation around)
By the time you have your snippets ready, I might have eventually mastered some advanced syntax stuff, that lets you do all sorts of cool things with your templates, that you would never have dreamed of.

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#14 2006-05-27 19:26:44

Ace of Dubs
Member
Registered: 2006-04-17
Posts: 446

Re: Colored code for TxP Admin

zem wrote:

A more useful Textpatter feature might be to provide a syntax checking and/or highlighting view (as opposed to editor) for page templates.

That does indeed sound interesting. I will give you a cookie if you can figure out how to do it :)

Offline

#15 2006-05-29 21:11:33

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: Colored code for TxP Admin

It shouldn’t be to hard.
At a more primitive stage, you give all those non allowed combinations of attribute/value pairs a distinct scope, that can then by styled in the Theme editor.

I just can’t wrap my brain around it. (Have been thinking though)

On the other hand though, since you would mostly use tab triggers, that have their own scope, you won’t need so much syntax check, since if you tab trigger something that doesn’t exist, well it just doesn’t get inserted.

regards

Last edited by marios (2006-05-29 21:24:16)


⌃ ⇧ < ⌃ ⇧ >

Offline

#16 2006-05-30 02:09:59

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: Colored code for TxP Admin

It’s done. The Grammar. Looks great.Needs some little debugging and a custom set of macros, commands and snippet, and the Theme needs some refinement.
Should be done in a week.

(And Dubs, no need for cut’n pasting, ctrl cmd E,that is the key)

regards

Last edited by marios (2006-05-30 02:14:18)


⌃ ⇧ < ⌃ ⇧ >

Offline

#17 2006-06-01 21:24:51

Ace of Dubs
Member
Registered: 2006-04-17
Posts: 446

Re: Colored code for TxP Admin

Man I feel like a cro-magnon monkey here, tapping at the keys and wondering why CMD CTRL E does nothing for me, while you are building a whole system of grammar snippets and automated goodies.

Man..I really need to bone up on the documentation for TM

Offline

#18 2006-06-02 03:29:16

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: Colored code for TxP Admin

A new improved version of the Grammar is on the way.
It wil perform some sort of syntax check on each known txp tag ,attributes and values.
When it can not find it, it will give a distinct scope of ‘unknown-unspecified’, which is easily to set apart with the Theme editor,I have a core module for the plist,now it needs to be differenciated between single, container and plugin tags again.
Those plist files are really no fun,gladly TM provides for a plist bundle that can perform syntax checking .

regards, marios

Last edited by marios (2006-06-02 03:30:47)


⌃ ⇧ < ⌃ ⇧ >

Offline

#19 2006-06-15 21:38:31

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: Colored code for TxP Admin

It’s done.

See related post over here

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

Board footer

Powered by FluxBB