A place where I can lay my keyboard

Easier editing of TypoScript

April 8th, 2006 Posted in Programming, TYPO3

I’ve recently discovered TextMate from www.macromates.com - a superb text editor, previously I’ve been using TextWrangler but I’m slowly using TextMate more and more, one of it’s really great features is it’s expandability through the use of bundles.

In getting to grips with the bundle editor I decided to put together a bundle for editing TypoScript so that it has syntax highlighting plus I’ve added some of the more common TypoScript objects as snippets to make it much quicker to put your typoscript together. I’ve put a link to the TSRef doc online as well as ensuring the comment toggle puts the right comment symbol in.

Not sure how it measures up as a first attempt but drop me a line if you find it useful or would like to see some other things added to it, likewise if you add any more features why not send them to me so I can include them here. If enough people are finding it useful then we can also consider getting the bundle added to the main repository at macromates.

I’ve added the following scope selectors to the language grammars which you’ll almost certainly want to add to your theme to have the syntax highlighted. (Whether these are the best scopes to use I don’t know but feel free to suggest others).

entity.other.tsobject
entity.other.tsconstant
entity.other.tsvalue
entity.other.tscopy

Technorati Tags: ,

UPDATE:

The bundle is much updated and now available from the macromates subversion repository.  Thanks to Sudara there is also a theme and a much better language grammar. You can find it under the Review directory. (Maybe one of these days I’ll iron out all the kinks and get it into the main section)

  1. 12 Responses to “Easier editing of TypoScript”

  2. By Frederic Robert on Jun 30, 2006

    Thank you very much for this textmate bundle. It works like a charm and will certainly be very useful for my future Typo3 projects.

  3. By Olivier Dobberkau on Aug 10, 2006

    Thanks a Lot!

  4. By Peter Foerger on Sep 27, 2006

    Cool one. Great to have. Thx.

  5. By Ingo on Dec 17, 2006

    Thanks a lot!
    Please put it on the macromates repository, so that updating it is easier…

  6. By Lars on Jan 11, 2007

    There’s also a possibility to use the PSPad. My favorite editor for TS! With the not official, but very useful Firefox extension mozex it’s very simple to write highlighted TS and bring it back directly and changed to the T3-backend.

  7. By Sudara on Mar 8, 2007

    Hello!

    Great work!

    I took a look at this, and used parts of it in a new bundle that has a bit more syntax highlighting.

    Check it out at http://blog.web-crossing.com and let me know what you think!

    sudara

  8. By bernd pier on Apr 6, 2008

    hi,
    thx for the bundle. i install it, but i didn`t see any highlighting. did i miss something?
    cu
    bernd

  9. By elaptics on Apr 7, 2008

    Hi Bernd,

    The bundle linked here is fairly old. There’s a much more fully featured and up to date version in the Textmate repository under the Review subfolder. If you’re using this bundle the most likely reason you’re not seeing any highlighting is if your theme doesn’t have anything set for the entity.other.* scope selectors. Contact me at andy at elaptics.co.uk and I’ll email you the latest version and a theme that I use which has pretty reasonable syntax highlighting

  1. 4 Trackback(s)

  2. Aug 9, 2006: atnexxt » Blog Archive » TypoScript komfortabel extern editieren
  3. Aug 23, 2006: KeilBlock » Blog Archiv » TypoScript aus einer Textdatei inkludieren
  4. Nov 3, 2006: Open Mind » Blog-Archiv » Syntax Highlighting für TypoScript
  5. Jan 17, 2008: Reiten, Schwimmen, Lesen » Blog Archive » Mac / Typo3 / Subversion

Post a Comment