Skip to content

Instantly share code, notes, and snippets.

@mafice
Created February 26, 2012 15:02
Show Gist options
  • Save mafice/1917193 to your computer and use it in GitHub Desktop.
Save mafice/1917193 to your computer and use it in GitHub Desktop.
textarea with Edit area
<!DOCTYPE html>
<html>
<head>
<!-- =====================================================
Edit area - http://www.cdolivet.com/editarea/
====================================================== -->
<meta charset="utf-8">
<title>text editor</title>
<script src="edit_area/edit_area_full.js"></script>
<script>
editAreaLoader.init({
id: "textarea_EditArea",
start_highlight: true,
allow_resize: "both",
allow_toggle: true,
word_wrap: false,
language: "en",
syntax: "php",
min_height: 400,
});
</script>
</head>
<body>
<textarea id="textarea_EditArea" wrap="off" style="width:100%;">
<?php
echo "Hello, World!";
</textarea>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment