ace.js 强大的在线代码编辑器,支持十几种语言


ace.js是一个强大的在线代码编辑器,支持110多种开发语言

包含ABAP,ABC,ActionScript,ADA,Apache_Conf,AsciiDoc,Assembly_x86,AutoHotKey,BatchFile,C9Search,C_Cpp,Cirru,Clojure,Cobol,coffee,ColdFusion,CSharp,CSS,Curly,D,Dart,Diff,Dockerfile,Dot,Dummy,DummySyntax,Eiffel,EJS,Elixir,Elm,Erlang,Forth,FTL,Gcode,Gherkin,Gitignore,Glsl,golang,Groovy,HAML,Handlebars,Haskell,haXe,HTML,HTML_Ruby,INI,Io,Jack,Jade,Java,JavaScript,JSON,JSONiq,JSP,JSX,Julia,LaTeX,LESS,Liquid,Lisp,LiveScript,LogiQL,LSL,Lua,LuaPage,Lucene,Makefile,Markdown,Mask,MATLAB,MEL,MUSHCode,MySQL,Nix,ObjectiveC,OCaml,Pascal,Perl,pgSQL,PHP,Powershell,Praat,Prolog,Properties,Protobuf,Python,R,RDoc,RHTML,Ruby,Rust,SASS,SCAD,Scala,Scheme,SCSS,SH,SJS,Smarty,snippets,Soy_Template,Space,SQL,Stylus,SVG,Tcl,Tex,Text,Textile,Toml,Twig,Typescript,Vala,VBScript,Velocity,Verilog,VHDL,XML,XQuery,YAML,

支持20多种主题皮肤

使用方式:

第一步引入bfwone

第二步执行功能代码

示例如下

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>BFW DEMO JS PAGE</title>
    <script id="bfwone" src="//repo.bfw.wiki/bfwrepo/js/bfwone.js"></script>
    <script>
        bready(function() {
            use(["ace/ace"], function() {
                var editor = ace.edit("editor");
                editor.$blockScrolling = Infinity;
                editor.setTheme("ace/theme/chaos");
                editor.session.setMode("ace/mode/html");
                editor.setFontSize(18);
                editor.setOption("wrap", "free");
                editor.setValue("hello world");
            });
        });
    </script>

</head>
<body>
    <pre id="editor" style="width:100%;height:500px;"></pre>
</body>
</html>


立即下载ace.js查看所有js插件

网友评论0

程序员在线工具箱