Home Web Front-end HTML Tutorial 推荐:Web开发者的六个代码调试平台_html/css_WEB-ITnose

推荐:Web开发者的六个代码调试平台_html/css_WEB-ITnose

Jun 24, 2016 am 11:19 AM

代码调试平台是Web开发者进行开发、测试、分享、协作和交流的网络应用,它们支持实时的编辑、预览HTML、CSS和JavaScript的客户端代码。这些代码调试平台最值得称道的地方在于,它们中的大多数都是免费的,你可以很容易的以学习或者调试程序为目的与他人分享你的工作。

就个人而言,这些web应用程序在日常工作中给我带来了不小的帮助。每当在使用JavaScript或者CSS编程碰到瓶颈的时候,我可以在代码调试平台上分享自己的代码并邀请其他的开发者朋友来解决。这种模式的有趣性和互动性对于新手的学习有很大的帮助。以下就是笔者推荐的六个代码调试平台。

Codepen

Codepen应该是全世界最受欢迎的代码调试平台了。CSS技巧的原作者Chris Coyier是Codepen的联合创始者之一,这就很好的说明了为什么这款网络应用会如此的受欢迎。此外,Codepen的视觉效果也是很重要的一个原因,它的编辑器可以快速生动的展现代码改变所产生的预览显示,使你能够更容易地找出变化。 常见代码调试平台Codepen

Codepen用于CSS的预处理器包括SCSS、SASS、LESS和Stylus,用于JS的预处理器包括CoffeeScript和LiveScript,用于HTML包括Haml、Markdown、Slim和Jade。另外,它还包含了8个可用的内置的JS库。在Codepen中,私人和协作的板块功能可以通过付费来获得

JSFiddle

JSFiddle是一个可靠的流行代码的调试平台,在这个领域,它是第一个也是最出名的。JSFiddle有30多个可立即使用的JavaScript库,你还可以轻松的添加外部文件。在预处理方面,它有用于CSS的SCSS、用于JS的CoffeeScript以及用于HTML的简单的Vanilla。 常见代码调试平台JSFiddle

如果你是与另外的程序员进行协作编程,我强烈建议你使用JSFiddle。JSFiddle的协作特性是同类型应用中最好的,而且它不同于Codepen,这个功能是易用且免费的。

JSFiddle的短板在于灵活预览方面,你需要点击播放按钮来手动刷新页面。和其它同类型应用相比,JSFiddle算是最慢之一了。另外,JSFiddle还有一个不足就是它的运行按钮不灵敏,有时需要点击几次才能够运行代码(这问题存在于多个浏览器中)。

JS Bin

JS Bin是由JavaScript开发大师Remy Sharp创建的,他拥有一家专注于JavaScript以及HTML5开发的web开发公司。JS Bin的JS预处理器包括CoffeeScript、TypeScript、Traceur、JSX以及可供使用的超过40个的JS库。你可以添加外部文件,但是必须进行手动编辑。而用于CSS的预处理器,它提供了LESS。 常见代码调试平台JS Bin

JS Bin区别于传统的代码调试平台的地方在于它允许你将文件下载到电脑上,这对于开发者尤其是常在离线状态下调试代码的程序员来说是一个很棒的特性。你还可以创建私人的Bin空间,当然这是一个付费功能。另外,JS Bin不支持协作功能。

CSSDeck

CSSDeck已经存在了好几年了,虽然没有产生出较大的影响力,但是因为其简单性还是吸引了很多人使用它。如果你不喜欢除开编码以外的那些繁杂特性,CSSDeck会是一个不错的选择。 常见代码调试平台CSSDeck

CSSDeck的预处理器包括用于HTML的HAML、Markdown、Slim和Jade,用于CSS的LESS、Stylus、SASS和SCSS,用于JS的CoffeeScript。它还有几个可用的CSS和javascript库,通过将其简单的手动添加进库列表就可以使用了。

CSSDeck令人称道的一个特性就是它支持用户改变字体大小,这是一个非常简单却又有用的功能。总的来说,CSSDeck不适合那些想要很多炫酷功能的用户,它摒弃了许多非必要的功能,专注于从事最重要的工作,它的简单性就是它最大的特点。

Dabblet

在很久以前,当我还在使用十六进制颜色代码的时候,Dabblet的特性让我惊讶了,它的颜色预览居然显示在代码旁,这是我第一次见到这样的设置。虽然我不确定这是否是一个有用的特性,但是它的整洁性还是给我留下了很深的印象。 常见代码调试平台Dabblet

现在,Dabblet更加令人惊叹的地方就是它支持用户用五个不同的视角进行预览:CSS编辑器及视图,HTML编辑器及视图,CSS和HTML的编辑器及视图,JavaScript及运行结果,全部综合视图。我不说全部,至少它拥有的功能绝大部分调试平台都没有。

再说一下它的缺点,第一,Dabblet缺乏HTML和CSS的预处理器,这是令人困惑的。第二,它没有内置的JavaScript库,这点你倒可以通过手动插入JavaScript库来解决。第三,它的每个板块大小是固定的,无法作出调整,这点和以前传统的调试平台是一样的。第四,它缺少一个用于演示其他用户作品的板块。

Liveweave

Liveweave是一个拥有非常多功能的代码调试平台,比如可关闭实时预览就是其中之一。你也可以为了保护视力,开启夜视模式,将所有界面都变暗。Liveweave提供20多个JavaScript库,甚至还支持SVG。其内置的标尺使测量更加精确,更符合美学上的感受。 常见代码调试平台Liveweave

它吸引我眼球的地方在于它简单的协作功能。如果你过去曾经使用过Teamviewer,你会发现两者的工作方式是一样的。你需要做的事就只是点击协作链接,你就可以分享来自于你的weave的链接了。我不清楚是我电脑还是互联网的原因,这有一点轻微的延迟,但是作为一个必不可少的功能,Liveweave在这点上做得很好。

你甚至可以下载你的weave文件,并保存为单一的HTML格式(将JS、CSS和HTML都保存到同一个文件里,这点可做得不够漂亮!),或者保存为包含独立的HTML、CSS和JS文件的zip压缩包(这个还行。)对了,有一点我还忘了说,Liveweave还有一个内置的Lorem Ipsum(乱数假文)生成器。

附上学习资料

http://www.36zhen.com/my?id=2549

http://www.36zhen.com/my?id=470

http://www.36zhen.com/my?id=2997

扫码关注w3ctech微信公众号

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1667
14
PHP Tutorial
1273
29
C# Tutorial
1255
24
HTML: The Structure, CSS: The Style, JavaScript: The Behavior HTML: The Structure, CSS: The Style, JavaScript: The Behavior Apr 18, 2025 am 12:09 AM

The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

The Future of HTML, CSS, and JavaScript: Web Development Trends The Future of HTML, CSS, and JavaScript: Web Development Trends Apr 19, 2025 am 12:02 AM

The future trends of HTML are semantics and web components, the future trends of CSS are CSS-in-JS and CSSHoudini, and the future trends of JavaScript are WebAssembly and Serverless. 1. HTML semantics improve accessibility and SEO effects, and Web components improve development efficiency, but attention should be paid to browser compatibility. 2. CSS-in-JS enhances style management flexibility but may increase file size. CSSHoudini allows direct operation of CSS rendering. 3.WebAssembly optimizes browser application performance but has a steep learning curve, and Serverless simplifies development but requires optimization of cold start problems.

The Future of HTML: Evolution and Trends in Web Design The Future of HTML: Evolution and Trends in Web Design Apr 17, 2025 am 12:12 AM

The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.

HTML vs. CSS vs. JavaScript: A Comparative Overview HTML vs. CSS vs. JavaScript: A Comparative Overview Apr 16, 2025 am 12:04 AM

The roles of HTML, CSS and JavaScript in web development are: HTML is responsible for content structure, CSS is responsible for style, and JavaScript is responsible for dynamic behavior. 1. HTML defines the web page structure and content through tags to ensure semantics. 2. CSS controls the web page style through selectors and attributes to make it beautiful and easy to read. 3. JavaScript controls web page behavior through scripts to achieve dynamic and interactive functions.

HTML: Building the Structure of Web Pages HTML: Building the Structure of Web Pages Apr 14, 2025 am 12:14 AM

HTML is the cornerstone of building web page structure. 1. HTML defines the content structure and semantics, and uses, etc. tags. 2. Provide semantic markers, such as, etc., to improve SEO effect. 3. To realize user interaction through tags, pay attention to form verification. 4. Use advanced elements such as, combined with JavaScript to achieve dynamic effects. 5. Common errors include unclosed labels and unquoted attribute values, and verification tools are required. 6. Optimization strategies include reducing HTTP requests, compressing HTML, using semantic tags, etc.

HTML vs. CSS and JavaScript: Comparing Web Technologies HTML vs. CSS and JavaScript: Comparing Web Technologies Apr 23, 2025 am 12:05 AM

HTML, CSS and JavaScript are the core technologies for building modern web pages: 1. HTML defines the web page structure, 2. CSS is responsible for the appearance of the web page, 3. JavaScript provides web page dynamics and interactivity, and they work together to create a website with a good user experience.

HTML: Is It a Programming Language or Something Else? HTML: Is It a Programming Language or Something Else? Apr 15, 2025 am 12:13 AM

HTMLisnotaprogramminglanguage;itisamarkuplanguage.1)HTMLstructuresandformatswebcontentusingtags.2)ItworkswithCSSforstylingandJavaScriptforinteractivity,enhancingwebdevelopment.

From Text to Websites: The Power of HTML From Text to Websites: The Power of HTML Apr 13, 2025 am 12:07 AM

HTML is a language used to build web pages, defining web page structure and content through tags and attributes. 1) HTML organizes document structure through tags, such as,. 2) The browser parses HTML to build the DOM and renders the web page. 3) New features of HTML5, such as, enhance multimedia functions. 4) Common errors include unclosed labels and unquoted attribute values. 5) Optimization suggestions include using semantic tags and reducing file size.

See all articles