Please note as of Wednesday, August 15th, 2018 this wiki has been set to read only. If you are a TI Employee and require Edit ability please contact x0211426 from the company directory.
PASM Syntax Highlighting
Content is no longer maintained and is being kept for reference only!
For the most up to date PRU-ICSS collateral click here
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 Vim
There is a plugin available here: https://github.com/batmanaod/pruss-vim
Note that by default, only files with the extensions .pru, .hpru, or .pasm are treated as PASM syntax files (filetype=pru). Edit the ftdetect/pruss.vim file to change this.
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)
How to get support for Sublime Text 3
- Browse to https://github.com/justinpearson/pasm-sublime-text-syntax-highlight
- Put the file pasm.sublime-syntax in the place where Sublime Text looks for syntax definitions:
- Mac: /Users/justin/Library/Application Support/Sublime Text 3/Packages/User/
- Linux: ~/.config/sublime-text-3/Packages/User/
- Restart Sublime Text.
- In the lower-right language selection, you should see 'pasm'