You can install Notepad++ on Linux using an unofficial Snap package with the command "sudo snap install notepad-plus-plus".
To replace any character with a newline in Notepad++, navigate to Search > Replace. Enter the character you want to replace ...