zoukankan      html  css  js  c++  java
  • [新功能]代码着色

    使用方法:
    在管理页面的FreetexBox编辑中, 点击“插入代码”,出现如下的窗口:


    选择你粘贴的代码的语言, 然后在文本框中粘贴代码,点击确定。这时,会在FreetextBox中出现着了色的代码。
    代码试例:

    public class _default : System.Web.UI.Page
        
    {

            
    protected System.Web.UI.WebControls.Literal Style;
            
    protected Literal TitleTag;
            
    protected System.Web.UI.WebControls.HyperLink TitleLink;
            
    protected System.Web.UI.WebControls.HyperLink HyperLink1;
            
    protected System.Web.UI.WebControls.HyperLink Hyperlink6;
            
    protected Dottext.Web.UI.WebControls.ContentRegion MainBodyRegion;
            
    protected Dottext.Web.UI.WebControls.MasterPage MPContainer;
            
    protected System.Web.UI.WebControls.HyperLink Hyperlink7;
        
            
    private void Page_Load(object sender, System.EventArgs e)
            
    {
            
        
            }


            
    Web Form Designer generated code
        }

    功能特点:
    1、支持C#、CSS、HTML、XML、JScript、SQL、VB.NET、VBScript的着色。
    2、着色效果几乎与VS.NET一样。
    该功能使用的是http://www.actiprosoftware.com 提供的CodeHighlighter控件。非常感谢actiprosoftware !

  • 相关阅读:
    windows下开启docker占用内存过高解决办法
    如何与别人共享Docker镜像
    使用docker部署springboot应用
    使用docker安装mysql5.7
    win10家庭版安装docker
    alibaba sentinel简单实践
    mysql函数GROUP_CONCAT()
    SVN同步时报错:“Previous operation has not finished; run 'cleanup' if it was interrupted”
    Eclipse从SVN检出maven项目后的一些配置
    完美解决 Uncaught SyntaxError: Unexpected token ‘<‘
  • 原文地址:https://www.cnblogs.com/dudu/p/19317.html
Copyright © 2011-2022 走看看