Friday, November 21, 2014

Mellify: Automatic Online Color Coding for Code

<!doctype html>
<html lang="en">
<head>
    
  <meta charset="utf-8">
  <title>contains demo</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>

    
 
<script>
$( "div:contains('stp')" ).css( "color", "red" );
$( "div:contains('fin')" ).css( "color", "red" );
$( "div:contains('#')" ).css( "color", "purple" );
$( "div:contains('ping')" ).css( "color", "green" );
$( "div:contains('Attach')" ).css( "color", "orange" );
$( "div:contains('If')" ).css( "color", "grey" );
</script>

No comments:

Post a Comment