增加了对SQL和Python语法高亮的支持,增加了右键菜单
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Pub;
namespace app01
{
public partial class FTextEdit : Form
{
public FTextEdit()
{
InitializeComponent();
}
private void btnOpen_Click(object sender, EventArgs e)
{
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
string sFileName = openFileDialog1.FileName;
tbox_Code.LoadFile(sFileName, true, true);
}
}
private void Form1_Load(object sender, EventArgs e)
{
tbox_Code.Dock = DockStyle.Fill;
//创建右键菜单