开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜