自动关闭html标记和jsp,php,记事本++中的asp标记以及脚本末尾的分号 [英] Auto close of html tags and jsp, php, asp tags in notepad++ and a semicolon at the end of the line written of scriptlets

查看:139
本文介绍了自动关闭html标记和jsp,php,记事本++中的asp标记以及脚本末尾的分号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用记事本++ 的问题和我喜欢它



我特别希望这样做:


  1. 自动关闭HTML标签。 (例如< / div>

  2. 在正确缩小.jsp,.asp,.php文件开始后关闭标记。 (例如<% %> <?php
  3. 默认情况下在行结尾放一个分号(每当我在<$对于(1),它确实是真实的(c $ c><?php?>

  4. 当我想在PHP文件中编写HTML标记时,对我感到沮丧。
    我升级到 6.5.1 ,并尝试使用 TextFX ,但它仅适用于扩展名为 .html code>或 .htm



    有人请指导我实现这些功能吗?

    解决方案

    关于自动关闭html标记,对于我来说,只有html作为语言并没有办法。



    (这个答案是不完整的,但是对于给出图片的评论来说太大了。)




    更改自动完成偏好设置,如下所示:


    • 设置 首选项






    • 自动完成标签> 自动插入部分> html / xml关闭标记





    我使用Notepad ++ v6.5.2


    I use and I like it

    I specifically want it to do this :

    1. Close automatically HTML tags. (eg. </div>)
    2. Close tags after starting with proper indention for .jsp, .asp, .php files. (eg.<% %>, <?php ?>)
    3. Put a semicolon at the line end by default (whenever I start a new line inside <?php ?>)

    For (1), it is really frustrating for me, when I want to write HTML tags in php files. I upgraded to 6.5.1, and tried the TextFX, but it works only with files which have the extension .html or .htm

    Could someone please guide me in achieving these features?

    解决方案

    Regarding auto-closing html tags, for me only having html as the language didn't do the trick.

    (This answer is incomplete, but is too large for a comment given the images.)


    Changing the auto-complete preferences, as below, worked:

    • Settings > Preferences

    • Auto-Completion tab > Auto-Insert section > html/xml close tag

    I use Notepad++ v6.5.2

    这篇关于自动关闭html标记和jsp,php,记事本++中的asp标记以及脚本末尾的分号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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