Reputation: 116
I am having issues with Sublime text editor removing my spacing, indenting all the way to the left.
For example:
%html{:lang => "en"}
%head
%meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
%meta{:charset => "utf-8"}/
%body
upon save, becomes:
%html{:lang => "en"}
%head
%meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
%meta{:charset => "utf-8"}/
%body
I can't find the fix online anywhere. I'm thinking I need to update my Sublime or change user preferences, but this seems to be a bug on my end.
Upvotes: 0
Views: 60
Reputation: 2617
First I'd recommend updating Sublime, because with Build 3083 my Sublime Text Editor recognizes .haml files as 'Ruby Haml'.
Second if HAML is not recognized in Sublime then try registering a syntax for all HAML files.
View > Syntax > Open all with current extension as...
Upvotes: 1