Community
Participate
Working Groups
When using the script tag with the type specified to "text/mustache" or a non-JS type. Auto indentation for whatever is typed between the tags does not take effect. Even highlighting multiple lines and indenting it all at once does not work. When a new line is entered, it always goes to the beginning of the line. The same behaviour is observed when typing those kind of codes in an .html file or a .php file (which I am assuming would be different editor instances) a sample would be: <script type="text/mustache"> <div> <ul> <li></li> <li></li> </ul> </div> </script>
Hi Jan-Raphael, This is a construct of Mustache, and not anything explicitly defined by any standard. So we have no plan to implement this in the project. You could implement this support in your own plug-in, however. This would allow you to define content assist, syntax highlighting, and formatting.
.
Hi Nick, I'm sorry to hear that. Although I think this case could have applied to any arbitrary text and not just Mustache constructs. Thinking that since I do this on *.html files, I filed the request here. If it changes, even just putting the cursor to the previous line's indentation level and shift+tab unindent would have been really great (sadly, I don't know the term Eclipse uses for this feature). Not really looking into syntax highlighting anymore. Although, thanks for taking the time to look into things! P.S. Using Eclipse's ordinary text editor, the indentation features are present and usable on said constructs (script tag with values other than "text/javascript")