generated from glad3n/Command-line-text-processing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcpp.snippets
43 lines (34 loc) · 1.44 KB
/
cpp.snippets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
snippet cheader "this creates a header for cpp files" b
/*****************************************************************************
* Author : Ram
* Date : `date +%d/%m/%y`
* Email : [email protected]
* Breif Description :
* Detailed Description :
*****************************************************************************/
endsnippet
snippet ctemplate "this creates a header for cpp files" b
#include <iostream>
int main()
{
return 0;
}
endsnippet
snippet line_very_thick "draws a thick line across" b
// ###########################################################################
endsnippet
snippet line_medium_thick "draws a medium line across" b
// ===========================================================================
endsnippet
snippet line_thin "draws a thin small across" b
std::cout << "----------------------------------------------------------------" << std::endl;
endsnippet
snippet red_text "prints text in red" b
std::cout << "\033[0;91m <enter text here> \033[0m\n" << std::endl; //red bold, change the first 1 to 0 for printing without bold
endsnippet
snippet green_text "prints text in green" b
std::cout << "\033[0;92m <enter text here> \033[0m\n" << std::endl; //red bold, change the first 1 to 0 for printing without bold
endsnippet
snippet blue_text "prints text in blue" b
std::cout << "\033[0;96m <enter text here> \033[0m\n" << std::endl; //red bold, change the first 1 to 0 for printing without bold
endsnippet