Implementing gedit in Ubuntu supports NesC syntax highlighting

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.