Highlight.js using Demo

Source: Internet
Author: User

Copy the following code, save as HTML, and the browser opens the preview.

<!DOCTYPE HTML><HTML><Head> <MetaCharSet= "Utf-8">  </Head><Body><Linkhref= "Http://cdn.bootcss.com/highlight.js/8.0/styles/monokai_sublime.min.css"rel= "stylesheet">  <Scriptsrc= "Http://cdn.bootcss.com/highlight.js/8.0/highlight.min.js"></Script>  <Script>hljs.inithighlightingonload ();</Script>  <Pre><Codeclass= "Lang-java">Supercatch Crash!!! ====================crash Log starts recording ====================crash time:2017-12-20 06:08:51crash thread:maincrash Digest: Java.lang.IllegalStateException:Could not execute method for Android:onclickcrash StackTrace: Java.lang.IllegalStateException:Could not execute method for Android:onclick at Android.support.v7.app.AppCompatViewI Nflater$declaredonclicklistener.onclick (appcompatviewinflater.java:293) at Android.view.View.performClick ( view.java:5646) at Android.view.view$performclick.run (view.java:22459) at Android.os.Handler.handleCallback ( handler.java:761) at Android.os.Handler.dispatchMessage (handler.java:98) at Android.os.Looper.loop (looper.java:156    ) at Android.app.ActivityThread.main (activitythread.java:6523) at Java.lang.reflect.Method.invoke (Native Method) At Com.android.internal.os.zygoteinit$methodandargscaller.run (zygoteinit.java:942) at Com.android.internal.os.ZygoteInit.main (zygoteinit.java:832) caused By:java.lang.reflect.InvocatiOntargetexception at Java.lang.reflect.Method.invoke (Native Method) at Android.support.v7.app.AppCompatViewInflater $DeclaredOnClickListener. OnClick (appcompatviewinflater.java:288) ... 9 morecaused by:java.lang.NullPointerException:Wa Null point Exception at Me.chunsheng.supercatch.MainActivity.crashT EST (mainactivity.java:19) ... More******crash Equipment Current information ******device Name:huawei eva-al00android version:7.0device system:eva-al00c00b398device battery:100%device rooted:nodevice ram:43.0% [2.00 gb]device disk:73.0% [25.00 gb]app verion:1.0device Network:wifi ====================crash Log End Record ====================</Code></Pre></Body></HTML>

Highlight.js using Demo

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.