开发者

Netbeans Source Format: Can It Recognize Other Stuff? (For RoR Views)

开发者 https://www.devze.com 2022-12-09 13:22 出处:网络
I am in love with Netbe开发者_如何学编程ans Source->Format feature. Is there any way to get it to recognize stuff in these blocks

I am in love with Netbe开发者_如何学编程ans Source->Format feature. Is there any way to get it to recognize stuff in these blocks

<% content_for :style do %>

<% end %>

as CSS? It would also help for autocomplete.

Ditto, of course, for

<% content_for :javascript do %>
<% end %>

blocks.


I'm not certain, but I think the source formatting is on a file basis only, not on parts of a file.

Edit: Actually, I'm wrong, the formatting can recognize various languages in the same file...obviously what's happening in an ERB file for ruby and html code. But I don't see a way of extending that.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号