如何在NetBeans中对EJS文件进行语法高亮显示 [英] How to syntax highlighting for ejs file in netbeans

查看:85
本文介绍了如何在NetBeans中对EJS文件进行语法高亮显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很长时间以来我一直在netbeans IDE中工作,最近开始在NodeJs中进行编码,但是ejs文件没有突出显示代码.如何摆脱这个问题.

I have been working in netbeans IDE since long time and recently started coding in NodeJs but there is no highlight code for ejs file. How to rid from this problem.

推荐答案

您需要使用某种关联文件类型配置ejs文件扩展名.步骤:-

You need to configure ejs file extension with some associative file type. Steps:-

  • 转到工具->选项
  • 单击其他"选项卡,然后单击文件"选项卡
  • 点击新建"按钮
  • 输入不带点的扩展名(例如 ejs ).
  • 从关联文件类型(MIME)"下拉框中选择适当的文件类型.例如 HTML文件(tex/html)
  • 单击确定",您就完成了
  • Go to Tools -> Options
  • Click on Miscellaneous Tab then Files tab
  • click the "New" button
  • Type your desire extension without the dot(e.g, ejs).
  • Select the appropriate file type from the "Associated file type (MIME)" drop down box. e.g, HTML Files(tex/html)
  • Click "OK" and you are done

这篇关于如何在NetBeans中对EJS文件进行语法高亮显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆