Coder Social home page Coder Social logo

rohankhayech / texteditor Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 80 KB

Demo text editor project featuring a multi-module plugin API, Python scripting and a custom keyboard shortcut DSL.

Java 98.02% Python 1.98%
dsl gradle javacc javafx jython multi-module plugin-api scripting text-editor university desktop

texteditor's Introduction

Text Editor

Extendable text editor demo project written in Java for a university assignment.

Author: Rohan Khayech

Features

  • Basic text editor functionality with GUI built with JavaFX.
  • Support for loading/saving files in UTF-8, UTF-16 and UTF-32 encoding.
  • Multi-module configuration using Gradle.
  • Extendable via a plugin API with example plugins included.
  • Runtime loading of plugins using reflection.
  • Extendable via Python scripting intepreted with Jython, with an example script included.
  • Custom DSL and parser for configuring keyboard shortcuts built with JavaCC.
  • Localisation support for language, date and number format, with example Dutch translation included.

How to Run

Run the following terminal command in the root directory:

> ./gradlew run

Example Plugins/Scripts

  • Find Plugin ( texteditor.FindPlugin ): Plugin for finding a specified phrase.
  • Date Plugin ( texteditor.DatePlugin ): Inserts a localised string representing the current date at the cursor position.
  • Emoji Script ( /scripts/emoji.py ): Replaces ':-)' with a smiley face emoji.

texteditor's People

Contributors

rohankhayech avatar

Stargazers

 avatar

Watchers

 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.