成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

Google Code Prettify 頁面語法高亮JS庫

開發 后端
Google Code Pretiffy 是 Google 的一個用來對代碼進行語法著色的 JavaScript 庫,支持 C/C++, Java, Python, Ruby, PHP, VisualBasic, AWK, Bash, SQL, HTML, XML, CSS, JavaScript, Makefiles和部分Perl。

Google Code Pretiffy 是 Google 的一個用來對代碼進行語法著色的 JavaScript 庫,支持 C/C++, Java, Python, Ruby, PHP, VisualBasic, AWK, Bash, SQL, HTML, XML, CSS, JavaScript, Makefiles和部分Perl。

  1. package foo;  
  2.  
  3. import java.util.Iterator;  
  4.  
  5. /**  
  6.  * the fibonacci series implemented as an Iterable.  
  7.  */ 
  8. public final class Fibonacci implements Iterable<Integer> {  
  9.   /** the next and previous members of the series. */ 
  10.   private int a = 1, b = 1;  
  11.  
  12.   @Override 
  13.   public Iterator<Integer> iterator() {  
  14.     return new Iterator<Integer>() {  
  15.       /** the series is infinite. */ 
  16.       public boolean hasNext() { return true; }  
  17.       public Integer next() {  
  18.         int tmp = a;  
  19.         a += b;  
  20.         b = tmp;  
  21.         return a;  
  22.       }  
  23.       public void remove() { throw new UnsupportedOperationException(); }  
  24.     };  
  25.   }  
  26.  
  27.   /**  
  28.    * the n<sup>th</sup> element of the given series.  
  29.    * @throws NoSuchElementException if there are less than n elements in the  
  30.    *   given Iterable's {@link Iterable#iterator iterator}.  
  31.    */ 
  32.   public static <T>  
  33.   T nth(int n, Iterable<T> iterable) {  
  34.     Iterator<? extends T> it = iterable.iterator();  
  35.     while (--n > 0) {  
  36.       it.next();  
  37.     }  
  38.     return it.next();  
  39.   }  
  40.  
  41.   public static void main(String[] args) {  
  42.     System.out.print(nth(10new Fibonacci()));  
  43.   }  

更多演示:http://google-code-prettify.googlecode.com/svn/trunk/tests/prettify_test.html

下載地址:http://code.google.com/p/google-code-prettify/downloads/list

責任編輯:林師授 來源: 51CTO
相關推薦

2012-05-22 01:49:22

Highlight.jJavaWEB

2012-05-22 01:45:58

JavaScriptCSSXML

2011-08-05 09:45:30

Google CodeGit

2009-06-09 21:59:13

語法高亮Javascript

2019-11-18 08:41:09

JavaScript編程語言瀏覽器

2010-02-23 17:42:29

Ubuntu vim

2013-05-24 11:14:01

谷歌代碼

2013-09-09 09:50:27

代碼語法工具

2009-09-03 15:11:18

RHEL5vi高亮

2011-10-08 13:45:12

JavaScript

2014-03-14 10:56:59

語法高亮代碼高亮

2023-05-31 11:38:45

GPTIDE代碼

2009-03-24 14:25:14

LinuxGoogleSummer of C

2009-08-18 10:17:44

Google Code

2011-10-08 13:22:43

Google數據庫云計算

2013-03-19 11:13:14

Google廣告SXSW

2025-04-01 02:00:00

GoogleProjectIDE

2023-07-30 22:25:00

JavaScrip服務端Web

2012-08-23 10:30:09

JavaScript

2011-12-02 09:20:58

JavaScript
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 九九热热九九 | 欧美成人a∨高清免费观看 老司机午夜性大片 | 日韩欧美三级 | 人妖videosex高潮另类 | 日日干天天干 | 久久久青草婷婷精品综合日韩 | av色站 | 午夜影院黄 | av一区二区三区 | 日日干干| 精品国产乱码久久久久久88av | 蜜桃视频一区二区三区 | 国产精品一区二区三级 | 久久av一区二区三区 | 欧美久久久久久久久中文字幕 | 日韩在线三级 | 国产美女黄色 | 911精品美国片911久久久 | 特级毛片| 黑人精品| 99久久久久国产精品免费 | 在线视频一区二区三区 | 在线观看免费av网 | 国产一级淫片免费视频 | 亚卅毛片| 国产色网站 | 久久综合伊人 | a在线观看 | 久久久久久黄 | 偷拍自拍第一页 | 日韩免费视频一区二区 | 欧美午夜剧场 | 一区二区三区四区在线 | 中文在线播放 | 亚洲精品在线免费 | 天天干天天爱天天 | 日本不卡免费新一二三区 | 日本 欧美 国产 | 91深夜福利视频 | 国产99久久精品一区二区永久免费 | 国产成人精品a视频一区www |