[TxMt] Re: Indenting Code & Markup Within Source Tags

David Aaron Fendley tricon at me.com
Wed Sep 24 23:37:22 UTC 2014


Formatting did not transfer. In the second example, I’d like the `body` tag indented by two spaces.

On Sep 24, 2014, at 4:36 PM, David Aaron Fendley <tricon at me.com> wrote:

> I would like code and markup inside certain tags to be indented. Currently, this occurs…
> 
> <style>
> body { … }
> </style>
> 
> Desired result:
> 
> <style>
> body { … }
> </style>
> 
> 
> I’ve determined that this is because style, script, and other tags are marked as `source.*`. If I rename these language constructs to something that doesn’t start with “source”, then indentation works as expected. However, I do not want to throwaway the advantages of inheriting from source.
> 
> Does anyone know where I can begin looking to modify the `source` grammar so that code within certain tags is indented? I have not had any luck with `increaseIndentPattern` (yet).
> 
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate



More information about the textmate mailing list