1 Star 0 Fork 47

johnsonliu/hplus 4.1

forked from 乱试佳人/hplus 4.1 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
code_editor.html 4.55 KB
一键复制 编辑 原始数据 按行查看 历史
乱试佳人 提交于 2016-12-25 21:27 . 1232134
<!DOCTYPE html>
<html>
<!-- Mirrored from www.zi-han.net/theme/hplus/code_editor.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:41 GMT -->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>H+ 后台主题UI框架 - 代码编辑器</title>
<meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
<meta name="description" content="H+是一个完全响应式,基于Bootstrap3最新版本开发的扁平化主题,她采用了主流的左右两栏式布局,使用了Html5+CSS3等现代技术">
<link rel="shortcut icon" href="favicon.ico"> <link href="css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
<link href="css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
<link href="css/animate.min.css" rel="stylesheet">
<link href="css/plugins/codemirror/codemirror.css" rel="stylesheet">
<link href="css/plugins/codemirror/ambiance.css" rel="stylesheet">
<link href="css/style.min862f.css?v=4.1.0" rel="stylesheet">
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
<div class="row">
<div class="col-sm-6">
<div class="ibox ">
<div class="ibox-title">
<h5>基本编辑器</h5>
</div>
<div class="ibox-content">
<p class="m-b-lg">
<strong>CodeMirror</strong> 是一个灵活的文本代码编辑器。它是专门用于编辑代码,并附带一些语言模块和插件,实现更先进的编辑功能。
</p>
<textarea id="code1">
<script>
// Code goes here
// For demo purpose - animation css script
function animationHover(element, animation) {
element = $(element);
element.hover(
function () {
element.addClass('animated ' + animation);
},
function () {
//wait for animation to finish before removing classes
window.setTimeout(function () {
element.removeClass('animated ' + animation);
}, 2000);
});
}
</script>
</textarea>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="ibox ">
<div class="ibox-title">
<h5>主题示例</h5>
</div>
<div class="ibox-content">
<p class="m-b-lg">
<strong>CodeMirror</strong>提供丰富的API接口和CSS主题,详情请访问
<a href="http://codemirror.net/" target="_blank">http://codemirror.net/</a>
</p>
<textarea id="code2">
var SpeechApp = angular.module('SpeechApp', []);
function VoiceCtrl($scope) {
$scope.said='...';
$scope.helloWorld = function() {
$scope.said = "Hello world!";
}
$scope.commands = {
'hello (world)': function() {
if (typeof console !== "undefined") console.log('hello world!')
$scope.$apply($scope.helloWorld);
},
'hey': function() {
if (typeof console !== "undefined") console.log('hey!')
$scope.$apply($scope.helloWorld);
}
};
annyang.debug();
annyang.init($scope.commands);
annyang.start();
}
</textarea>
</div>
</div>
</div>
</div>
</div>
<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.6"></script>
<script src="js/plugins/peity/jquery.peity.min.js"></script>
<script src="js/plugins/codemirror/codemirror.js"></script>
<script src="js/plugins/codemirror/mode/javascript/javascript.js"></script>
<script src="js/content.min.js?v=1.0.0"></script>
<script>
$(document).ready(function(){var editor_one=CodeMirror.fromTextArea(document.getElementById("code1"),{lineNumbers:true,matchBrackets:true,styleActiveLine:true,theme:"ambiance"});var editor_two=CodeMirror.fromTextArea(document.getElementById("code2"),{lineNumbers:true,matchBrackets:true,styleActiveLine:true})});
</script>
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
</body>
<!-- Mirrored from www.zi-han.net/theme/hplus/code_editor.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:42 GMT -->
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/rapid_framework/hplus-4.1.git
git@gitee.com:rapid_framework/hplus-4.1.git
rapid_framework
hplus-4.1
hplus 4.1
master

搜索帮助