Git Product home page Git Product logo

texteditor's Introduction

Text Editor

A simple text editor implemented in Java using the Command Pattern to provide undo/redo functionality and handle text editing operations.

Overview

This project implements a basic text editor with support for inserting and deleting text, as well as undoing and redoing changes. It utilizes the Command Pattern to encapsulate text editing operations as command objects, allowing for easy undo/redo functionality.

Features

  • Insert and delete text at specified positions.
  • Undo and redo changes using the Command Pattern.
  • Maintain a history of executed commands for undo/redo functionality.
  • Simple and intuitive user interface for text editing.

Usage

  1. Clone the repository:

    git clone https://github.com/yourusername/text-editor.git
  2. Compile the Java files:

    javac *.java
  3. Run the Main class:

    java Main
  4. Use the text editor to insert, delete, undo, and redo changes as needed.

Command Pattern

The Command Pattern is a behavioral design pattern that encapsulates a request as an object, thereby allowing parameterization of clients with queues, requests, and operations. In this project, text editing operations (e.g., insert, delete) are encapsulated as command objects, allowing for easy undo/redo functionality by maintaining a history of executed commands.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Feel free to fork, contribute, or provide feedback on this project!

texteditor's People

Contributors

iampushkar avatar

Watchers

 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.