How to use a browser that supports HTML5 for editing without the IDE

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.