Skip to content
This repository has been archived by the owner on Jan 21, 2023. It is now read-only.
/ zhaw-text-editor Public archive

Text Editor project from my computer science studies at the ZHAW School of Engineering.

Notifications You must be signed in to change notification settings

boostvolt/zhaw-text-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text Editor

A simple text editor with input and output via the console.

Getting started

  1. Open the repository in the IntelliJ IDE and navigate to the App.java file.
  2. Click Execution Symbol Run next to the Current File option on the toolbar.
  3. The program is compiled and started accordingly. After that the commands listed below can be used in the console.

Available commands

Command Parameter Description
ADD [n] Optional Adds a paragraph at position n or at the end if no parameter given.
DEL [n] Optional Removes a paragraph at position n or the last one if no parameter given.
DUMMY [n] Optional Adds a dummy paragraph at position n or at the end if no parameter given.
EXIT None Exits the program.
FORMAT FIX [n] Required Changes the output format of the paragraphs to only be n columns wide.
FORMAT RAW None Changes the output format to a raw output of the paragraphs.
HELP None Prints the help text.
INDEX None Indexes word frequency in paragraphs and prints out frequent words.
PRINT None Prints out all Paragraphs in the current format.
REPLACE [n] Optional Replaces a sequence of characters in paragraph n or in the last paragraph if no parameter given.

Classdiagram

classdiagram