tumblr code highlighting
why was this so hard
here’s a guide

#dc comics#batman#dc#bruce wayne#dick grayson#tim drake#batfamily#batfam#dc fanart


seen from China
seen from Singapore
seen from United Kingdom
seen from Russia
seen from United States

seen from United States
seen from China

seen from United States
seen from Italy
seen from Türkiye
seen from United States

seen from Canada

seen from United States
seen from Canada
seen from Canada
seen from Germany

seen from Malaysia
seen from United States
seen from Guatemala
seen from Poland
tumblr code highlighting
why was this so hard
here’s a guide

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
I want to try this out soon. I think i can fit perfectly when I’m building styleguides with code examples
Code Highlighting Example
Minelienda comes with built in support for code highlighting using prism.js.
Code highlighting is easy with prism.js. Just add a 'language-xxxx' class withing the code tag as shown. 'xxxx' is the language used. For a full list of languages included within prism.js used in minelienda tumblr theme see below.
Note: always use the code tag within a 'pre' tag for the highlighting to work.
<pre> <code class="language-xxxx"> code comes here </code> </pre>
To add line numbers simply add the class "line-numbers" to your pre tag as shown below:
<pre class="line-numbers"> <code class="language-xxxx"> code comes here </code> </pre>
Example (language-css):
p{color:blue;}
Languages Supported by Prism.js' current version used with minlineda:
Markup
Twig
CSS
CSS Extras
C-like
Eiffel
JavaScript
Java
PHP
PHP Extras
CoffeeScript
Sass (Scss)
Bash
C
C++
Python
SQL
Groovy
HTTP
Ruby
Rip
Gherkin
C#
Go
NSIS
ASP.NET (C#)
Scala
Haskell
Swift
Objective-C
AutoHotkey
Ini
LaTeX
Apache Configuration
Git
Scheme
nasm
Perl
Handlebars
MATLAB
Less
R
LOLCODE
Fortran
Erlang
Haml
Jade
Pascal
AppleScript
Rust
Dart
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
``` head section pre.prettyprint { overflow-x: auto; margin: 5px 20px 20px; }
``` body tag <body onload="prettyPrint()">

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Pojoaque: A southwest inspired code highlighting theme for Highlight JS by web-cms-designs.com
如何呈現語法高亮度
這是我最近研究出來的方法,歡迎各方同好批評指教。
先選 theme
我嘗試後找到一個比較滿意的就是目前 demo 使用的這個。
select "Free Themes"
use "Pink touch 2 by kcmr"
記得 save
google-code-prettify
上網 survey 到 google-code-prettify 可以用,所以要到 custommize 設定去加入讓 js/css 生效。
Edit HTML
在 <head></head> 裡面加入這段 code
<!-- http://code.google.com/p/google-code-prettify/ --> <link href="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.js"></script>
將 <body> 改成 <body onload="prettyPrint()">
一樣記得 save
使用方法
這隻 js 會吃兩種方法:
<pre class="prettyprint">...</pre>
<code class="prettyprint">...</code>
我的用法是加 <pre><code class="prettyprint">...</code></pre>。
範例
demo code highlighting
code:
module Lovely class Application < Rails::Application ... end end
or longer code:
$ rails generate model Comment commenter:string body:text post:references