Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tanner-davison/text-to-visual-output-by_tanner_davison
designed to read input from a text file, process the content into custom-styled HTML elements, and display the generated HTML in a browser. The project also includes functionality to print the text data as a 2D character array in the terminal.
https://github.com/tanner-davison/text-to-visual-output-by_tanner_davison
Last synced: 2 months ago
JSON representation
designed to read input from a text file, process the content into custom-styled HTML elements, and display the generated HTML in a browser. The project also includes functionality to print the text data as a 2D character array in the terminal.
- Host: GitHub
- URL: https://github.com/tanner-davison/text-to-visual-output-by_tanner_davison
- Owner: Tanner-Davison
- Created: 2024-08-12T01:33:13.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-08-21T06:20:32.000Z (4 months ago)
- Last Synced: 2024-10-09T17:20:29.878Z (2 months ago)
- Language: C++
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Project Name: **Text To Visual Output**
by: Tanner Davison### Description
**Text-to-Styled-HTML** is a C++ project designed to read input from a text file, process the content into custom-styled HTML elements, and display the generated HTML in a browser. The project also includes functionality to print the text data as a 2D character array in the terminal.### Features
- **Input Handling**: Reads text data from `prog3A.txt` and appends new content entered by the user.
- **Custom HTML Generation**: Converts each line of the text into a styled `` HTML element using a custom `CustomElement` class.
- **HTML Output**: Outputs the styled HTML content into `prog3A.html` and opens the file in a web browser.
- **Data Display**: Prints the processed text data as a 2D character array in the terminal.
- **Dynamic Content Length Calculation**: Calculates and stores the length of each row in the input text.### How It Works
1. **Input**: The program reads data from `prog3A.txt` and captures user input, appending it to the file.
2. **Processing**: Each line of text is converted into a `CustomElement` object, styled using CSS, and stored in a vector.
3. **Output**: The generated HTML is written to `prog3A.html` and opened in a web browser for viewing.
4. **Terminal Output**: The text data is printed as a 2D character array in the terminal for verification and debugging purposes.