PASM Syntax Highlighting
From Texas Instruments Embedded Processors Wiki
Translate this page to
Overview
This page describes how to enable syntax highlighting support for PASM (PRU assembly)on popular editors like Notepad++ and Textpad.
How to get support for Notepad++
Notepad++ (http://notepad-plus.sourceforge.net/uk/site.htm) is a light weight multi-tab free source editor for Windows. Below are steps to enable PASM syntax highlighting in Notepad++ using User Defined Language option.
- Install Notepad++
- Open %APPDATA%\Notepad++ folder via Start->Run
- Copy userDefineLang.xml from http://processors.wiki.ti.com/images/3/39/UserDefineLang.zip to above folder
- Above XML assumes extensions .p for source and .hp for header – custom extensions can be added in XML in "ext" section
- Select Language->PASM after restarting Notepad++ to enable syntax highlighting
- To make Notepad++ by default open PASM sources and apply syntax highlighting, add these extensions to Settings->FileAssociation->customize
How to get support for Textpad
- Extract pasm.syn http://processors.wiki.ti.com/images/e/ea/Pasm.zip into the SAMPLES sub-folder of TextPad installation folder
- Create the document class (In TextPad 4.2 and later, this can be done using the "New Document Class" wizard on the "Configure" menu)
- Specify which files are members of that class. (*.p,*.hp,*.pdsp,*.pasm)
- Specify which syntax definition file is required. (Point to pasm.syn in the selection window)
Leave a Comment
