Code Monkey home page Code Monkey logo

sa.codeview's Introduction

SA.CodeView

C# WinForms code editor with syntax highlighting

SA.CodeView is light-weight viewer and editor with syntax highlighting. It can be used as single-line text field or as fully functioned editor. It was initially developed for some application but then was segregated as standalone open-source library.

Quick Start

  • Download the sources and compile SA.CodeView.dll library.
  • Create new Windows Forms project and open Form1.cs designer view.
  • Toolbox panel -> right click -> Choose Items... -> Browse. CodeViewer control should appear.
  • Drag and drop CodeViewer into the form.
  • Specify Language property, compile the project.

Features

  • Line Numbers. Just Set ShowLineNumbers = true.
  • "Find Text" window. Invoke ShowFind() method from your code.

ShowFind window

  • Current line highlighting. Turn on HighlightCurrentLine property.

Current line highlighting

  • Ability to change background and border for some text fragments. Spans can be used for this purpose. The span is part of the text with specified background and border color. Add items to Spans collection to use this feature:
	codeViewer.Text = "Span sample";
	codeViewer.Spans.Add(Brushes.LightGreen, 0, 2, 7);

Spans sample

  • Syntax highlighting. SA.CodeView has expandable system of different languages support. It also supports predefined support of XML and different dialects of SQL. To enable syntax highlighting select on of predefined languages:
	codeViewer.Language = PredefinedLanguage.MsSql;

Syntax highlighting

or implement your own implementation.

sa.codeview's People

Contributors

ygavrishov avatar anti-apple4life 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.