Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <input name="print" type="button" value="Print 列印此頁"
onClick="varitext()">
<br/><br/>
<div>
  <h1>列印測試</h1>
  <p>C語言幾乎是當代所有語言的基礎。無論是Ruby, Python(cPython), PHP 或是 Node.js所依賴的V8引擎,裡面都是大量的C語言與C++語法所構成。更不用說常見的作業系統Linux核心和他的變化 - Android系統,甚至是蘋果的iOS與MacOS系統,都含有大量的C語言及其家族程式。</p>
  <p>即使現在較多人提倡的是快速開發,消耗硬體資源換取工程師寶貴的時間。但還是會有很多進階的情況,是必須進入到核心的部分去調校程式。</p>
  <p>在系統資源較缺乏的裝置上 - 例如物聯網相關家電產品,C語言(及其家族程式)幾乎是唯一的工業 / 商業選項。</p>
  <p>畢竟網站主程式多半是只給一台電腦伺服器使用,而產品型商品程式則相反,量產幾乎都是萬台起跳。單一裝置即使只節省一點零件成本,集合起來的利潤也會相當的高。</p>
  <p>所以就工業/商業上,即使新興語言在撰寫與理解上佔有優勢,也很難在短時間取代C語言這"物理"上的優勢。</p>
</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                function varitext(){
  var text = document
  print(text)
}
              
            
!
999px

Console