<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FileManageContent.aspx.cs"
    Inherits="BingoWebsiteCollector.Web.Management.FileManageReal" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" href="codemirror/lib/codemirror.css">
    <script src="codemirror/lib/codemirror.js"></script>
    <script src="codemirror/mode/xml/xml.js"></script>
    <script src="codemirror/mode/javascript/javascript.js"></script>
    <script src="codemirror/mode/css/css.js"></script>
    <script src="codemirror/mode/htmlmixed/htmlmixed.js"></script>
    <link rel="stylesheet" href="codemirror/doc/docs.css">
    <style>
        .CodeMirror
        {
            border-top: 1px solid black;
            border-bottom: 1px solid black;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:TextBox ID="tbContent" runat="server" TextMode="MultiLine"></asp:TextBox>
    <script>
        var editor = CodeMirror.fromTextArea(document.getElementById("<%=tbContent.ClientID %>"), { mode: "text/html", tabMode: "indent" });
    </script>
    <script type="text/javascript">
        function getContent() {
            return editor.getValue();
        }
    </script>
    </form>
</body>
</html>
