Markup playground

Developer
Size
2,492 Kb
Views
18,216

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 Previews

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); }); });
});
Markup playground - Script Codes
Markup playground - Script Codes
Home Page Home
Developer Matheus Silva
Username matheusxaviersi
Uploaded October 20, 2022
Rating 3
Size 2,492 Kb
Views 18,216
Do you need developer help for Markup playground?

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!

Matheus Silva (matheusxaviersi) Script Codes
Create amazing Facebook ads with AI!

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!