![]() |
Contoh Penggunaan Penyorot Data Sintaks |
Silakan menyalin kode skrip di bawah ini sebelum tag </head> pada HTML situs web/blog Anda.
<!-- Penyorot Data Sintaks Mulai --> <link href='https://googledrive.com/host/0B1Wou_43Fu05dXJ1QkR2TVQ4UUE' rel='stylesheet' type='text/css'/> <link href='https://googledrive.com/host/0B1Wou_43Fu05blNSeEYxYTZRSUE' rel='stylesheet' type='text/css'/> <style type='text/css'> .syntaxhighlighter .line .number code{ color:white; } </style> <script src='https://googledrive.com/host/0B1Wou_43Fu05d25Wa0xJRC1ucVU' type='text/javascript'></script> <script src='https://googledrive.com/host/0B1Wou_43Fu05OW1hWG9GZ3Z1dmc' type='text/javascript'></script> <script src='https://googledrive.com/host/0B1Wou_43Fu05NEZuZHpXSlJJV00' type='text/javascript'></script> <script src='https://googledrive.com/host/0B1Wou_43Fu05YWFWbmZ4R1pmZDA' type='text/javascript'></script> <script src='https://googledrive.com/host/0B1Wou_43Fu05cTJBQl9xZTFUaG8' type='text/javascript'></script> <script src='https://googledrive.com/host/0B1Wou_43Fu05bnFRN1pmSmgwOXc' type='text/javascript'></script> <script src='https://googledrive.com/host/0B1Wou_43Fu05MUpBZGhHSlBTYTA' type='text/javascript'></script> <script src='https://googledrive.com/host/0B1Wou_43Fu05Z1ltLVVwbml5Xzg' type='text/javascript'></script> <script language='javascript'> SyntaxHighlighter.config.bloggerMode = true; SyntaxHighlighter.config.clipboardSwf = "https://googledrive.com/host/0B1Wou_43Fu05NUlzRVo4Z3RHZ1E"; SyntaxHighlighter.all(); </script> <!-- Penyorot Data Sintaks Selesai -->
Tutorial ini diadaptasi dari SyntaxHighlighter - Alex Gorbatchev. Hampir semua javascript disimpan pada Google Drive untuk mengantisipasi jika suatu saat situs asal tidak bisa diakses.
Semoga bermanfaat !
Tidak ada komentar:
Posting Komentar