Get the App
SLTechnology News&Howtos  ›  Development  › 

How to highlight the JS library with Google Code Prettify page syntax

Shulou Source: shulou.com Published: 2022-06-02 20:47:31 09月27日 Update

This article shows you how to use Google Code Prettify page syntax to highlight the JS library, the content is concise and easy to understand, absolutely can make your eyes bright, through the detailed introduction of this article, I hope you can get something.

Google Code Pretiffy is a Google JavaScript library for syntactically coloring code. It supports Cmax Clippers, Java, Python, Ruby, PHP, VisualBasic, AWK, Bash, SQL, HTML, XML, CSS, JavaScript, Makefiles and some Perl.

Package foo; import java.util.Iterator; / * * the fibonacci series implemented as an Iterable. * / public final class Fibonacci implements Iterable {/ * * the next and previous members of the series. * / private int a = 1, b = 1; @ Override public Iterator iterator () {return new Iterator () {/ * * the series is infinite. * / public boolean hasNext () {return true;} public Integer next () {int tmp = a; a + = b; b = tmp; return a;} public void remove () {throw new UnsupportedOperationException ();}};} / * the nth element of the given series. * @ throws NoSuchElementException if there are less than n elements in the * given Iterable's {@ link Iterable#iterator iterator}. * / public static T nth (int n, Iterable iterable) {Iterator

Tags: Grammar page highlight content skills knowledge concise concise code that is articles more articles industry information channels parts channels one bright reserve Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Redmi NVidia Shulou Information Docker