GithubHelp home page GithubHelp logo

awaescher / easyscintilla Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adam8797/easyscintilla

1.0 3.0 0.0 57 KB

The easiest possible way to use Scintilla.NET in Windows Forms

License: GNU General Public License v3.0

C# 99.89% Batchfile 0.11%

easyscintilla's Introduction

EasyScintilla

A (hopefully) easier way to use ScintillaNET in Windows Forms

Installation

The easiest way to install is to use NuGet!

> Install-Package EasyScintilla

Usage

The goal was to make Scintilla as easy as possible to drop into a Windows Forms project.

From the forms designer, simply drag the SimpleEditor control from the toolbox onto the form.

Then, in the code behind set the Styler property.

this.simpleEditor1.Styler = new CSharpStyler();

That's it!

Common Issues

Some users have been having issues where the SimpleEditor control does not get added to the Designer Toolbox.

To fix that, follow these steps:

  1. If you've not done so already, install EasyScintilla
  2. Open up the Windows Forms Designer
  3. Right click on the empty space in the Toolbox, and click "Choose Items"
  4. Once it has finished loading, click Browse.
  5. Navigate to your project directory, and look for the folder called "packages". This is where Visual Studio saves your NuGet packages after you install them.
  6. Navigate to [solution_root]\packages\jacobslusser.ScintillaNET.3.6.3\lib\net40 and choose the file ScintillaNET.dll and click OK.
  7. Navigate to [solution_root]\packages\EasyScintilla.1.0.3\lib\net40 and choose EasyScintilla.dll and click OK.
  8. Click OK.
  9. You should now see both the Scintilla and SimpleEditor controls appear in the Toolbox. Scintilla is the base editor from Scintilla.NET and SimpleEditor is from this project.

Stylers

I've built a few stylers into EasyScintilla, but I will happily take pull requests for new stylers.

You can create your own stylers be deriving from the abstract class ScintillaStyler

Examples can be found in the Stylers Directory.

Built in stylers

Language Styler Class
C# CSharpStyler
HTML HtmlStyler
PowerShell PowerShellStyler
Python PythonStyler
Ruby RubyStyler
SQL SqlStyler
Teradata Parallel Transporter (TPT) TptStyler
Windows Batch BatchStyler

easyscintilla's People

Contributors

adam8797 avatar awaescher avatar psaxton avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.