Likhaan Text Editor is a lightweight, feature-rich text editing tool developed using Windows Forms in C#. It provides a simple interface for creating, editing, and managing text files, with essential functionalities like printing, searching, undo/redo, and more.
The next steps for this project include adding version control integration and improving the overall UI/UX for a more seamless user experience.
- Create, Open, and Save Files: Easily create new text documents, open existing files, and save them either directly or with the 'Save As' option.
- Edit Options: Supports basic text editing functions such as undo, redo, cut, copy, paste, and select all.
- Search: Search for specific text within the document using the built-in search feature.
- Printing: Preview and print text documents using the integrated Print Manager.
- User-Friendly Interface: Intuitive UI designed for ease of use.
- Open-Source: Likhaan Text Editor is open-source and available on GitHub for collaboration and improvements.
-
Clone the repository:
git clone https://github.com/SxryxnshS5/Likhaan-Text_Editor.git
-
Open in Visual Studio:
- Open the solution file (
LikhaanTextEditor.sln
) in Visual Studio.
- Open the solution file (
-
Build and Run:
- Compile the project using
Ctrl + Shift + B
. - Run the application (
F5
orCtrl + F5
).
- Compile the project using
- New File: Clears the editor for a new text document.
- Open File: Open any
.txt
or other text files through theFile -> Open
menu. - Save File: Save the current document using
File -> Save
orFile -> Save As
.
- Undo/Redo: Quickly undo or redo your changes via the Edit menu or using shortcuts (
Ctrl + Z
/Ctrl + Y
). - Cut/Copy/Paste: Basic text operations can be done from the Edit menu or using the keyboard shortcuts (
Ctrl + X
/Ctrl + C
/Ctrl + V
).
- Search: Use the
Search
function to find specific text in the document. - Print: Preview and print your document via
File -> Print
.
The project is built using Windows Forms and organized as follows:
- MainForm.cs: Contains the main UI logic and event handlers for various menu items like
New
,Open
,Save
,Print
, etc. - FileManager.cs: Manages file operations such as opening, saving, and saving as.
- PrintManager.cs: Handles printing functionality, including print preview and actual document printing.
-
FileManager: Handles file-related tasks:
OpenFile()
: Opens and loads a text file into the editor.SaveFile()
: Saves the current text file.SaveFileAs()
: Prompts the user to save the file with a new name.
-
PrintManager: Manages printing operations:
Print()
: Displays the print preview dialog and prepares the document for printing.PrintPage()
: Sends the text content to the printer.
Implemented within the MainForm
class, the search function allows users to find specific text in the document, using a dialog box to input the search query.
Contributions are welcome! Feel free to open an issue or submit a pull request on GitHub.
This project is open-source under the MIT License. For more details, see the LICENSE file.
Thank you for using Likhaan Text Editor! For any issues, please open an issue on the GitHub repository.