1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/yjblogs-CodingEditor

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
index.html 1.4 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
yanjun Отправлено 12.03.2019 15:43 de5e4fb
<!DOCTYPE html>
<html>
<frameset id="frameId1" rows="4%, *" border="1">
<frame name="header" src="page/ace-editor-header.html" noresize="noresize" scrolling="no">
<frameset id="frameId2" cols="15%, *" border="4">
<frame name="navigation" src="page/ace-editor-navigation.html">
<frame name="body" src="page/ace-editor-body.html">
</frameset>
</frameset>
</html>
<!--
// 设置编辑器内容
editor.setValue('123');
// 设置滚动速度
editor.setScrollSpeed(2);
// 设置字体
editor.setOptions({fontFamily: 'Courier New'});
'Consolas'
'Bahnschrift'
'Georgia'
'Ink Free'
''
// 设置字体大小
editor.setFontSize(20);
// 设置编程语言
editor.getSession().setMode("ace/mode/java");
// 设置主题
editor.setTheme("ace/theme/idle_fingers");
// 设置滚动至文本末尾后能继续滚动的距离(0-1)
editor.setOptions({scrollPastEnd: 1});
// 设置只读
editor.setOptions({readOnly: true});
// 设置不显示行号
editor.setOptions({showLineNumbers: false});
// 设置每行文本长度辅助线的位置
editor.setPrintMarginColumn(100);
// 设置隐藏每行文本长度辅助线
editor.setShowPrintMargin(false);
// 获取只读状态,true为只读,false为可编辑
editor.getReadOnly();
// 移动光标
editor.moveCursorTo(0, 0);
// 内容搜索 ctrl+f
editor.execCommand('find');
-->

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/yjblogs-CodingEditor.git
git@api.gitlife.ru:oschina-mirror/yjblogs-CodingEditor.git
oschina-mirror
yjblogs-CodingEditor
yjblogs-CodingEditor
master