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.
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.
New File
: Starting on a fresh new file. Under theFile
tab on the top-left corner, click on theNew File
button.Open File
: Opening an existing text file to edit Under theFile
tab on the top-left corner, click on theOpen File
button or pressCtrl-O
on your keyboard.Insert File
: Insert text from an existing text file into your current editor. Under theFile
tab on the top-left corner, click on theInsert File
button or pressCtrl-I
on your keyboard.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 theFile
tab on the top-left corner, click on theSave File
button or pressCtrl-S
on your keyboard.Save File As
: Save your existing changes on the text editor as a file name of your choice. Under theFile
tab on the top-left corner, click on theSave File As...
button or pressCtrl-Shift-S
on your keyboard.New View
: Duplicate your existing text editor page onto a new text editor page. Under theFile
tab on the top-left corner, click on theNew View
button or pressAlt-V
on your keyboard.Close View
: Close your existing text editor page. Under theFile
tab on the top-left corner, click on theClose View
button or pressCtrl-W
on your keyboard.Exit
: Exit the text editor application Under theFile
tab on the top-left corner, click on theExit
button or pressCtrl-Q
on your keyboard.
Undo
: Undo your last added word. Under theEdit
tab on the top-left corner, click on theUndo
button or pressCtrl-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.
Cut File
: Cut a selected text section. Under theEdit
tab on the top-left corner, click on theCut
button or pressCtrl-X
on your keyboard.Copy
: Copy a selected text section. Under theEdit
tab on the top-left corner, click on theCopy
button or pressCtrl-C
on your keyboard.Paste
: Paste an already-copied text section in. Under theEdit
tab on the top-left corner, click on thePaste
button or pressCtrl-V
on your keyboard.
Find
: Search for a specific string. Under theSearch
tab on the top-left corner, click on theFind
button or pressCtrl-F
on your keyboard.Find Again
: Search for the previously searched string again. Under theSearch
tab on the top-left corner, click on theFind Again
button or pressCtrl-G
on your keyboard.Replace
: Replace a specified text with another text of your choosing. Under theSearch
tab on the top-left corner, click on theReplace
button or pressCtrl-R
on your keyboard.Replace Again
: Replace a specified text with the last replace parameters. Under theSearch
tab on the top-left corner, click on theReplace Again
button or pressCtrl-T
on your keyboard.
Please highlight the section of text you want the operation to work for before using any of the "Search Features"
- Code Keywords: C/C++ code keywords will be highlighted in blue
- 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.
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
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