Karl-Horning / replace-newlines

This web application allows users to manipulate text by replacing newline characters with newline characters or vice versa. It provides a user-friendly interface where users can input text, toggle between different transformation options, and copy the transformed text to the clipboard.

Home Page:https://karl-horning.github.io/replace-newlines/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace Newlines Web App

This web application allows users to manipulate text by replacing newline characters with newline characters or vice versa. It provides a user-friendly interface where users can input text, toggle between different transformation options, and copy the transformed text to the clipboard.

Features

  • Replace newline characters with the literal string "\n".
  • Replace occurrences of the literal string "\n" with actual newline characters.
  • Toggle between the two transformation options using a switch.
  • Copy the transformed text to the clipboard with the click of a button.

Technologies Used

  • HTML
  • CSS (Bootstrap for styling)
  • JavaScript

Getting Started

To run this application locally, follow these steps:

  1. Clone this repository to your local machine:

    git clone https://github.com/Karl-Horning/replace-newlines.git
  2. Navigate to the project directory:

    cd replace-newlines
  3. Open the index.html file in your web browser.

Usage

  1. Enter text into the input textarea.
  2. Toggle the switch to choose between replacing newline characters with "\n" or replacing "\n" with newline characters.
  3. The output textarea will display the transformed text.
  4. Click the "Copy Output" button to copy the transformed text to the clipboard.

Contributing

Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Karl Horning

GitHub | LinkedIn | CodePen

About

This web application allows users to manipulate text by replacing newline characters with newline characters or vice versa. It provides a user-friendly interface where users can input text, toggle between different transformation options, and copy the transformed text to the clipboard.

https://karl-horning.github.io/replace-newlines/

License:MIT License


Languages

Language:JavaScript 52.0%Language:HTML 47.1%Language:CSS 0.9%