1. Examples
C + + mode is turned on when you enter the following in the taskbar
Data:text/html,<styletype= "Text/css">. E{position:Absolute;Top:0; Right:0;Bottom:0; Left:0;}</style><Divclass= "E"ID= "Editor"></Div><Scriptsrc= "Http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js"type= "Text/javascript"CharSet= "Utf-8"></Script><Script>vare=Ace.edit ("Editor"); E.settheme ("Ace/theme/monokai"); E.getsession (). SetMode ("Ace/mode/c_cpp");</Script>
2. Mode switch
If you want to use a different pattern, replace the ace/mode/c_cppin the code with one of the following patterns
Ace/mode/java, Ace/mode/c_cppjava, ace/mode/pythonc/c++, Python
Other support JavaScript, Scala, Coffeescript, CSS, html, PHP, Latex, Tex, SH, SQL, LUA, Clojure, Dart, typescript, go, groovy, JS On, JSPs, less, Lisp, Lucene, Perl, PowerShell, SCSS, Textile, XML, YAML, XQuery, Liquid, diff
3. Theme Switch
Replace the Ace/theme/monokaiin your code with one of the following topics
Ace/theme/textmate, Ace/theme/eclipsetextmate, Eclipse
Other support for GitHub, ambiance, Dawn, chaos, Chrome, Dreamweaver, Xcode, Vibrant_ink, Solarized_dark, Solarized_light, tomorrow, T Omorrow_night, Tomorrow_night_blue, Twilight, Tomorrow_night_eighties, Pastel_on_dark
How to use a browser that supports HTML5 for editing without the IDE