If you don't have one already, I suggest using a good external editor that supports FreeMarker. It's far superior to the editor built-in to NetSuite. I have bee using VS Code, and they have a plug-in for freemarker. It works well. I imagine there are others too (I know IntelliJ has a plug-in for it as well).