Color Code Plugin Examples
- Single line comments using #Markup:
[{ColorCode syntax='sql' tokenizer.wordChar:'#' colorcode.comment.singleline.pattern='#'



# Default Installation parameters

innodb_buffer_pool_instances=8

}]
Result:




#Default Installation parameters

innodb_buffer_pool_instances=8
- Multi-line comments in cMarkup:
[{ColorCode syntax='c' tokenizer.wordChar:'/,*' colorcode.comment.multiline.pattern:'/*,*/'



/*



* This program takes age input from the user

* It stores it in the age variable

* And prints the value using printf()

*/



/*Code below */



#include <stdio.h>



int main() {



int age;



printf("Enter the age: ");

scanf("%d", &age);



printf("Age = %d", age);



return 0;

}

}]
Result:




/*

* This program takes age input from the user

* It stores it in the age variable

* And prints the value using printf()

*/




/* Code below */



#include <stdio.h>



int main() {



int age;



printf("Enter the age: ");

scanf("%d", &age);



printf("Age = %d", age);



return 0;

}
Was this helpful?