Auto Snippets Syntax highlighter [Example - paste.ac / FAQ]

01/01/2001  •  213 views
 
All of your pasted content will be highlighted with the code syntax highlighter, including if there is plain text in it.

<!DOCTYPE html>
<html>
<head>
 <meta charset="utf-8">
 <title>www.paste.ac</title>
 <style>
 body {
 margin:auto;
 max-width:780px;
 padding:20px;
 }
 a {
 color:#6457fc;
 text-decoration:none;
 }
 a:hover {
 color:#ff9000;
 text-decoration:none; 
 }
 </style>
</head>
<body>

 <p>All of your pasted content will be highlighted with the code syntax highlighter, including if there is plain text in it.</p> 

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

<script>
$(document).ready(function(){
 $("button").click(function(){
 $("p").hide(1000);
 alert("The paragraph is now hidden");
 });
});
</script>
</body>
</html>
 English / Indonesian