Markup playground
How do I make an markup playground?
This is a very small very simple markup language it cant get simpler(I'm not kidding). What is a markup playground? How do you make a markup playground? This script and codes were developed by Matheus Silva on 20 October 2022, Thursday.
Markup playground - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>markup playground</title> <link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ body{ background-color: #2C3E50;
}
.code{ position: absolute; padding: 10px; width: 50%; heigth: 50%; color: black; background-color: #ECF0F1; margin: 1% 0 0 30%; font-family: 'Source Sans Pro', 'sans-serif'; font-size: 20px;
}
span{ font-family: 'Source Sans Pro', 'sans-serif';
}
.keyword{ color: #3A539B;
}
.varn{ color: #E87E04; font-wheight: bold;
}
.function{ color: #2ECC71; font-weight: bold;
}
.string{ color: #D24D57;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <textarea class="edit"></textarea>
<div class="code" id="code"> <span class="keyword">this.<span class="varn">test </span></span>=<span class="function"><span class="keyword"> function</span> test (<span class="varn">args</span>) </span> <span>{ <br> <span class="keyword">var <span class="varn">name</span></span> <br> }</span>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Markup playground - Script Codes CSS Codes
body{ background-color: #2C3E50;
}
.code{ position: absolute; padding: 10px; width: 50%; heigth: 50%; color: black; background-color: #ECF0F1; margin: 1% 0 0 30%; font-family: 'Source Sans Pro', 'sans-serif'; font-size: 20px;
}
span{ font-family: 'Source Sans Pro', 'sans-serif';
}
.keyword{ color: #3A539B;
}
.varn{ color: #E87E04; font-wheight: bold;
}
.function{ color: #2ECC71; font-weight: bold;
}
.string{ color: #D24D57;
}
Markup playground - Script Codes JS Codes
$('#code').click(function(e){ e.preventDefault(); $('#code').focus(function(){ $('.edit').keypress(function(){ var te = $('.code').val(); te = te.replace(/(class)/ig, '</span class="keyword">$1<span>'); te = te.replace(/( )/ig, '<span class="space">.</span>'); console.log('called'); $('#code').html(te); }); });
});
Developer | Matheus Silva |
Username | matheusxaviersi |
Uploaded | October 20, 2022 |
Rating | 3 |
Size | 2,492 Kb |
Views | 18,216 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Server satus indicator | 2,289 Kb |
Keytester | 2,180 Kb |
Sample page | 4,168 Kb |
Mug foundation-pre loader | 3,330 Kb |
Just some fun with 3d transforms | 2,140 Kb |
Recipe site layout | 5,896 Kb |
Css3 loaders 4rd revision | 3,307 Kb |
Menu concept | 3,451 Kb |
Login page | 3,547 Kb |
Off canvas menu | 7,017 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Coburg Banks SVG Logo | Mjtweaver | 3,875 Kb |
Mostly Fluid | Mccreath | 3,308 Kb |
3D Text in Sass | Bookcasey | 2,766 Kb |
Starfield using KineticJS | Asp | 3,512 Kb |
Project Euler Problem 17 | Bfillmer | 2,739 Kb |
Minimelephant | Smashlee | 2,507 Kb |
Static Image to Video Block | Grayghostvisuals | 4,864 Kb |
A Pen by Xand0r | Xand0r | 1,928 Kb |
3D-box | Parthviroja | 2,346 Kb |
Calculator | Rzencoder | 4,572 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!