Widgets > wijeditor > wijeditor Tutorial > wijeditor Step 1 of 3: Setting up the View |
In this step you'll add the markup to render the page and add text that will appear within the editor. Complete the following:
<body>
tags of the page. This markup will add content for the editor.
<div class="page">
<div id="header">
<div id="title">
<h2>Overview</h2>
<div class="main demo">
<!-- Begin demo markup -->
<textarea id="wijeditor" style="width: 756px; height: 475px;">
<h1>JavaScript</h1>
<p>
JavaScript is a prototype-based scripting language that is dynamic, weakly typed and has
first-class functions. It is a multi-paradigm language, supporting object-oriented, imperative, and functional
programming styles. JavaScript was formalized in the ECMAScript language standard and is primarily used in the
form of client-side JavaScript, implemented as part of a Web browser in order to provide enhanced user interfaces
and dynamic websites. This enables programmatic access to computational objects within a host environment.
JavaScript's use in applications outside Web pages - for example in PDF documents, site-specific browsers, and
desktop widgets - is also significant. Newer and faster JavaScript VMs and frameworks built upon them (notably
Node.js) have also increased the popularity of JavaScript for server-side web applications. JavaScript uses syntax
influenced by that of C. JavaScript copies many names and naming conventions from Java, but the two languages are
otherwise unrelated and have very different semantics. The key design principles within JavaScript are taken from
the Self and Scheme programming languages.</p>
<h2>
History
</h2>
<p>
JavaScript was originally developed by Brendan Eich of Netscape under the name Mocha,
which was later renamed to LiveScript, and finally to JavaScript. LiveScript was the official name for the
language when it first shipped in beta releases of Netscape Navigator 2.0 in September 1995, but it was renamed
JavaScript in a joint announcement with Sun Microsystems on December 4, 1995, when it was deployed in the Netscape
browser version 2.0B3.
</p>
<p>
The change of name from LiveScript to JavaScript roughly coincided with Netscape adding
support for Java technology in its Netscape Navigator web browser. The final choice of name caused confusion,
giving the impression that the language was a spin-off of the Java programming language, and the choice has been
characterized by many as a marketing ploy by Netscape to give JavaScript the cachet of what was then the hot new
web-programming language. It has also been claimed that the language's name is the result of a co-marketing deal
between Netscape and Sun, in exchange for Netscape bundling Sun's Java runtime with its then-dominant browser.
</p>
<p>
JavaScript very quickly gained widespread success as a client-side scripting language
for web pages. As a consequence, Microsoft named its implementation JScript to avoid trademark issues. JScript
added new date methods to fix the Y2K-problematic methods in JavaScript, which were based on Java's java.util.Date
class. JScript was included in Internet Explorer 3.0, released in August 1996.
</p> </textarea>
<!-- End demo markup -->
</div>
</div>
</div>