You can add your
macros to the Proton syntax hint database so that whenever it sees your macro
keyword name it will pop-up the syntax as a hint.
The Proton IDE holds
a database of hints and help file references in Database.mcd. The IDE also recognises the file User.mcd as
an extension to the database.mcd. If you
haven’t already created a User.mcd create a text file starting with the
following contents.
DATABASE
END
DATABASE
and save it as
User.mcd in the IDE directory.
The wizard will
generate automatically the text to enter into your User.mcd database. In the example below the hint text for the Add Two Words and Enhanced Clear
Screen macro examples are shown added to User.mcd.
DATABASE
KEY
("Add_Word")
DeviceCore = [dc12, dc14, dc16]
Highlighter = KeywordUser
Hint = "<b>Var</b> =
<b>Add_Word</b> <i><b>W1</b> As
WORD,<b>W2</b> As WORD </i>"
ENDKEY
KEY
("CLL")
DeviceCore = [dc12, dc14, dc16]
Highlighter = KeywordUser
Hint = "<b>CLL</b>
<i> Optional <b>Line</b> As BYTE, Optional
<b>Position</b> As BYTE</i>"
ENDKEY
END
DATABASE
Next time the Proton
IDE is started the Add_Word and CLL hints will be available.
This is the popup
you should see when entering CLL into the IDE.