In PowerBuilder 11.2, you can select JavaScript or HTML from the Files of Type drop-down list in the File Open dialog box for the File editor.