Giter VIP home page Giter VIP logo

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 requiemninja avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

easyscintilla's Issues

There are no components in...

when navigating to add the toolbox control for the EasyScintilla it is returning an error saying "there are not compnents in ...\packages\EasScintilla.1.0.4\lib\net40\EasyScintilla.dll"

Added and removed the package via package manager and it did not fix the problem.

The property Styler does not exist in Scintilla class

I was traing to implement a simple windows form with EasyScintilla, so a added the following code to the class constructor.
this.simpleEditor1.Styler = new CSharpStyler();

I get the erro from Visual Studio:

'Scintilla' does not contain a definition for 'Styler' and no accessible extension method 'Styler'

How to set the font of a SimpleEditor control?

How to set the font of a SimpleEditor control? SimpleEditor control doesn't have a Font property. The SimpleEditor class has a DefaultFont property, but it's read-only. Can you help me?

Spacing of nested code

How can I indent the code after creating back-to-back braces?
Like the following code snippet:

for (int i = 0; i < count; i++)
{
     for(int j = 0 ; j < i ; j++)
     {
            if () 
            {
                 //do somethings
            }
     }
}

Resolved: NuGet package only contains 32-bit libraries

When I install the component via NuGet only the 32-bit libraries get installed.

I downloaded your project files compiled them locally and I can't see anything wrong with them, Platform Target is AnyCPU for both Debug and Release. I confirmed the assemblies installed are 32 bit using ILSpy. Is there some

I am using the PackageReference NuGet format.

I suspect this has something to do with the *.nuspec file and the package format, specifically the runtimes element discussed here: https://docs.microsoft.com/en-us/nuget/create-packages/creating-a-package#setting-a-package-type

I am sorry I can't be more helpful.

SimpleEditor control missing from the toolbox

I'm not able to see the SimpleEditor Component after installing EasyScintilla v1.02. (the installation was successful)

I'm using Visual Studio Community 2015 Update 3 and jacobslusser.ScintillaNet v3.6.3

Thanks,
Jay

nuget package doesn't install

Following the readme and trying to install from nugget fails. I get the below in the package manager console...

Installing 'EasyScintilla 1.0.1'. You are downloading EasyScintilla from Adam Schiavone, the license agreement to which is available at https://github.com/adam8797/EasyScintilla/blob/master/LICENSE. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device. Successfully installed 'EasyScintilla 1.0.1'. Adding 'EasyScintilla 1.0.1' to WindowsFormsApplication1. Uninstalling 'EasyScintilla 1.0.1'. Successfully uninstalled 'EasyScintilla 1.0.1'. Install failed. Rolling back... Install-Package : Could not install package 'EasyScintilla 1.0.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.1', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

I've gotten round it for now by cloning and building locally. Seems to be a really nice little control so far.

Also found a couple of instances of a typo in PowershellStyler.cs - HereCharcter instead of HereCharacter

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.