Discussion:
[TxMt] [YAML] tabs -> spaces
Xavier Cambar
2008-02-12 14:29:54 UTC
Permalink
Hello everyone,
I have a probably silly question for you concerning tabulations:

Yaml can't stand tabulations, it says it requires spaces instead. How
can I get TextMate to insert spaces instead of tabs?


Regards,
Xavier
Chris Mear
2008-02-12 14:39:50 UTC
Permalink
Post by Xavier Cambar
Yaml can't stand tabulations, it says it requires spaces instead. How
can I get TextMate to insert spaces instead of tabs?
Mark Eli Kalderon
2008-02-12 14:41:23 UTC
Permalink
Two useful things to know:

Text --> Convert --> Tabs to Spaces

Click on the Tab Size button on the status bar (bottom of the window) and
select Soft Tabs.

Hope this helps. Best, Mark
Post by Xavier Cambar
Hello everyone,
Yaml can't stand tabulations, it says it requires spaces instead. How
can I get TextMate to insert spaces instead of tabs?
Regards,
Xavier
______________________________________________________________________
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate
Xavier Cambar
2008-02-12 19:12:38 UTC
Permalink
Definitively a silly question...

Thanks to both of you for answering,
Xavier
Alaric Snell-Pym
2008-02-12 19:28:09 UTC
Permalink
On a related note, most people I work with use tabs for indentation,
so I generally have Textmate set up to do so (with a tab size of
about two characters), but then when editing YAML files, I have to
manually adjust this. And remember to set it back afterwards.

Some way of YAML files automatically banning tabs and just using
spaces would be really nice.

And having the option of doing the same for Python source would rock,
too :-)

ABS

--
Alaric Snell-Pym
Work: http://www.snell-systems.co.uk/
Play: http://www.snell-pym.org.uk/alaric/
Blog: http://www.snell-pym.org.uk/?author=4
Alexander Ross
2008-02-12 20:09:48 UTC
Permalink
Post by Alaric Snell-Pym
On a related note, most people I work with use tabs for indentation,
so I generally have Textmate set up to do so (with a tab size of
about two characters), but then when editing YAML files, I have to
manually adjust this. And remember to set it back afterwards.
Some way of YAML files automatically banning tabs and just using
spaces would be really nice.
And having the option of doing the same for Python source would rock,
too :-)
AFAIK, Textmate should remember your tab settings on a per-language basis...
Dennis Amrouche
2008-02-12 19:33:11 UTC
Permalink
Post by Xavier Cambar
Definitively a silly question...
we had sesamstreet of BBC in germany. Credo always was: Aint no stupid
questions but for sure stupid answers :0)

well, well, well, ...

If ya dont support the nOObs, they will multiply :0)

------------------------------------------

sincere
Dennis - TextMate-nOOb
Loading...