<html>
<head>
<title> Remove Line Numbers </title>
<style type="text/css">
html, body, textarea { height: 100%; width: 100%; margin: 0px; padding: 0px; border: 0px; }
textarea { width: 100%; height: 100%; background: none ; line-height: 20px; font-size: 15px; resize: none; outline:none; }
</style>
<script type="text/javascript">
var regex = new RegExp("^\\s*\\d+\\.?", "gm");
function removeLineNumber(textArea) {
textArea.value = textArea.value.replace(regex, "");
}
</script>
</head>
<body onload="document.getElementById('textarea').focus()">
<textarea id="textarea" onkeyup="removeLineNumber(this)" rows="50" cols="250">Paste your Code Here.</textarea>
</body>
</html>
Friday, 30 March 2012
Remove Line Numbers
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment