move a few things away in to-be-integrated/
[myslice.git] / to-be-integrated / third-party / codemirror-3.15 / demo / bidi.html
1 <!doctype html>
2 <html>
3   <head>
4     <meta charset="utf-8">
5     <title>CodeMirror: Bi-directional Text Demo</title>
6     <link rel="stylesheet" href="../lib/codemirror.css">
7     <script src="../lib/codemirror.js"></script>
8     <script src="../mode/xml/xml.js"></script>
9     <link rel="stylesheet" href="../doc/docs.css">
10
11     <style type="text/css">
12       .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}
13     </style>
14   </head>
15   <body>
16     <h1>CodeMirror: Bi-directional Text Demo</h1>
17
18     <form><textarea id="code" name="code"><!-- Piece of the CodeMirror manual, 'translated' into Arabic by
19      Google Translate -->
20
21 <dl>
22   <dt id=option_value><code>value (string or Doc)</code></dt>
23   <dd>قيمة البداية المحرر. يمكن أن تكون سلسلة، أو. كائن مستند.</dd>
24   <dt id=option_mode><code>mode (string or object)</code></dt>
25   <dd>وضع الاستخدام. عندما لا تعطى، وهذا الافتراضي إلى الطريقة الاولى
26   التي تم تحميلها. قد يكون من سلسلة، والتي إما أسماء أو ببساطة هو وضع
27   MIME نوع المرتبطة اسطة. بدلا من ذلك، قد يكون من كائن يحتوي على
28   خيارات التكوين لواسطة، مع <code>name</code> الخاصية التي وضع أسماء
29   (على سبيل المثال <code>{name: "javascript", json: true}</code>).
30   صفحات التجريبي لكل وضع تحتوي على معلومات حول ما معلمات تكوين وضع
31   يدعمها. يمكنك أن تطلب CodeMirror التي تم تعريفها طرق وأنواع MIME
32   الكشف على <code>CodeMirror.modes</code>
33   و <code>CodeMirror.mimeModes</code> الكائنات. وضع خرائط الأسماء
34   الأولى لمنشئات الخاصة بهم، وخرائط لأنواع MIME 2 المواصفات
35   واسطة.</dd>
36   <dt id=option_theme><code>theme (string)</code></dt>
37   <dd>موضوع لنمط المحرر مع. يجب عليك التأكد من الملف CSS تحديد
38   المقابلة <code>.cm-s-[name]</code> يتم تحميل أنماط (انظر
39   <a href=../theme/><code>theme</code></a> الدليل في التوزيع).
40   الافتراضي هو <code>"default"</code> ، والتي تم تضمينها في
41   الألوان <code>codemirror.css</code>. فمن الممكن استخدام فئات متعددة
42   في تطبيق السمات مرة واحدة على سبيل المثال <code>"foo bar"</code>
43   سيتم تعيين كل من <code>cm-s-foo</code> و <code>cm-s-bar</code>
44   الطبقات إلى المحرر.</dd>
45 </dl>
46 </textarea></form>
47
48     <script>
49 var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
50   mode: "text/html",
51   lineNumbers: true,
52   lineWrapping: true
53 });
54 </script>
55
56   <p>Demonstration of bi-directional text support. See
57   the <a href="http://marijnhaverbeke.nl/blog/cursor-in-bidi-text.html">related
58   blog post</a> for more background.</p>
59
60   </body>
61 </html>