Skip to content

Berttwm/Text-Editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text-Editor

Introduction

Welcome to my lightweight Text-Editor app! This application allows you to create, take, edit and insert text files. It has a barebones interface (this will be shown down the slides) which allows you to do the minimum essentials for note taking.

Image 1

Usage Guide

Simple download the texteditor_Bertrand.exe file and double click to open. Select "Trust this application" and run the exe file. The text-editor screen will appear and you can begin using it!

Unfortunately, there is no available version for Mac/Linux users at the moment.

Available Features

Files

2

  1. New File: Starting on a fresh new file. Under the File tab on the top-left corner, click on the New File button.
  2. Open File: Opening an existing text file to edit Under the File tab on the top-left corner, click on the Open File button or press Ctrl-Oon your keyboard.
  3. Insert File: Insert text from an existing text file into your current editor. Under the File tab on the top-left corner, click on the Insert File button or press Ctrl-Ion your keyboard.
  4. Save File: Save your existing changes on the text editor. If no save file has been created before, the editor will prompt you to create a new save file. Under the File tab on the top-left corner, click on the Save File button or press Ctrl-Son your keyboard.
  5. Save File As: Save your existing changes on the text editor as a file name of your choice. Under the File tab on the top-left corner, click on the Save File As... button or press Ctrl-Shift-Son your keyboard.
  6. New View: Duplicate your existing text editor page onto a new text editor page. Under the File tab on the top-left corner, click on the New View button or press Alt-Von your keyboard.
  7. Close View: Close your existing text editor page. Under the File tab on the top-left corner, click on the Close View button or press Ctrl-Won your keyboard.
  8. Exit: Exit the text editor application Under the File tab on the top-left corner, click on the Exit button or press Ctrl-Qon your keyboard.

Edit

3

  1. Undo: Undo your last added word. Under the Edit tab on the top-left corner, click on the Undo button or press Ctrl-Z on your keyboard.

The undo feature only works with a maximum of one change. Tapping undo a second time simply "Redo" the undone change.

  1. Cut File: Cut a selected text section. Under the Edit tab on the top-left corner, click on the Cut button or press Ctrl-Xon your keyboard.
  2. Copy: Copy a selected text section. Under the Edit tab on the top-left corner, click on the Copy button or press Ctrl-Con your keyboard.
  3. Paste: Paste an already-copied text section in. Under the Edit tab on the top-left corner, click on the Paste button or press Ctrl-Von your keyboard.

Search

4

  1. Find: Search for a specific string. Under the Search tab on the top-left corner, click on the Find button or press Ctrl-F on your keyboard.
  2. Find Again: Search for the previously searched string again. Under the Search tab on the top-left corner, click on the Find Again button or press Ctrl-Gon your keyboard.
  3. Replace: Replace a specified text with another text of your choosing. Under the Search tab on the top-left corner, click on the Replace button or press Ctrl-Ron your keyboard.
  4. Replace Again: Replace a specified text with the last replace parameters. Under the Search tab on the top-left corner, click on the Replace Again button or press Ctrl-Ton your keyboard.

Please highlight the section of text you want the operation to work for before using any of the "Search Features"

Syntax Support

5

  1. Code Keywords: C/C++ code keywords will be highlighted in blue
  2. Type Keywords: C/C++ type keywords will be highlighted in red

All supported words are shown in the image above. Only C/C++ support for now.

Edit Source Code

The text editor application was built using Visual Studio 2017 and the FLTK (Version 1.3.4) api was called for the build. You can download FLTK at this link and you can follow this guide for the installation process on visual studio 2017.

Please follow the guide step-by-step until: 3. Go to: the fluid folder in your fltk source folder as the following steps of the guide has already been incorporated in my project

File Locations

Using Visual Studio, open Project1.sln found in the repository. The source codes are found in /Project directory of the repository. Do not change the project properties as it will lead to unwanted behavior. You should either use Debug mode or Release mode when running the project.

You will find the main method stored in /Project1/fltk_editor.cpp and the global variables stored in /Project1/EditorWindow.cpp