In TinyOS, nesC programming is mainly used, which is a close relation of C language. The default tool for enabling text is gedit. Save the following code as nesc. lang & lt ;? Xmlversion = "1.0" encoding = "UTF-8 "? & Gt; & lt ;! -- NesC (networkembedded1_emc) GtkSourceviewlanguagedefi
In TinyOS, nesC programming is mainly used, which is a close relation of C language. The default tool for enabling text is gedit. Save the following code as nesc. lang.
Text/x-nc
*. Nc; * C. nc; * M. nc; * P. nc
->
//
/*
*/
False
New
This
True
Using
Task
Post
Namespace
Event
Command
Module
Implementation
Configuration
Typename
Template
Virtual
Interface
Generic
Uint8_t
Uint16_t
Uint32_t
Int8_t
Int16_t
Int32_t
Bool
Explicit
Export
Inline
Error_t
Result_t
Packet_t
Message_t
Struct
Enum
Provides
Components
As
Uses
Atomic
->
Then copy nesc. lang to the specified directory.
Sudo cp ~ /Nesc. lang/usr/share/gtksourceview-2.0/language-specs/
Restart Gedit and choose View> highlight mode> source code> NesC.