[JavaScript] How to use HightLight in Dojo?
来源:互联网 发布:特斯拉知乎 编辑:程序博客网 时间:2024/06/05 05:41
The HightLight can help make the code blocks in the HTML more beautifully. This recipe tells you how to use this cool feature in the Dojo toolkit.
<!DOCTYPE HTML><html><head><title>Dojo Trip</title><link rel="stylesheet" href="http://yandex.st/dojo/1.9.1/dojox/highlight/resources/highlight.css" /></head><body><div id="main"><div id="code" class="javascript">var name = "Dojo";</div></div><script type="text/javascript">var dojoConfig = {async: false};</script><script src="http://yandex.st/dojo/1.9.1/dojo/dojo.js"></script><script type="text/javascript">require(["dojox/highlight/_base",'dojo/ready',"dojox/highlight/widget/Code","dojox/highlight/languages/javascript"],function(highlight,ready,Code){ready(function(){new highlight.Code({},"code");//var code = new Code({},'code');//code.startup();});});</script></body></html>
0 0
- [JavaScript] How to use HightLight in Dojo?
- [JavaScript] Use template engine in Dojo
- how to use javascript to control the usercotrol in the asp.net
- Use Dojo in Zend
- How to use Serial Port in Windows
- How To Use Macro In Program.
- How to use virt-install in OpenSolaris
- How to use tinyfck in drupal
- How to use Regular Expression in LotusScript
- How to Use PeekMessage() Correctly in Windows
- How to use IMGDECMP.DLL in WindowsCE
- how to use deb files in ubuntu
- How to use Common Navigator in RCP
- How to use SCAT in ECC6
- HOW TO : use DDMS in Ubuntu
- How to use getBodyClass() in magento?
- How to use forms in Tapestry 5.
- How to use svn in Linux
- 春醉郁金香,美了我的醉意
- OpenGL学习笔记——黑屏解决之视点定位
- 陌上花开只属于我们的季节
- android Platform Codenames, Versions, API Levels, and NDK Releases
- 清明小游
- [JavaScript] How to use HightLight in Dojo?
- <s:select>二级联动
- socket基础编程
- 一个优异的的爬虫架构应该具备的几点
- 35岁以前把下面十件事做好
- 网赚平台Clixsense+网易手机号邮箱短信提醒调查实现轻松网赚
- Java虚拟机(五)
- 相遇不如不遇,相爱不如不爱
- ArrayList的用法