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 !

  • 相关阅读:
    Redis基础
    Ajax&Json
    Docker基础修炼3--Docker容器及常用命令
    Docker基础修炼2--Docker镜像原理及常用命令
    Docker基础修炼1--Docker简介及快速入门体验
    linux入门系列20--Web服务之LNMP架构实战
    linux入门系列19--数据库管理系统(DBMS)之MariaDB
    linux入门系列18--Web服务之Apache服务2
    linux入门系列18--Web服务之Apache服务1
    linux入门系列17--邮件系统之Postfix和Dovecot
  • 原文地址:https://www.cnblogs.com/dudu/p/19317.html
Copyright © 2011-2022 走看看