mirror of
				https://github.com/felixalbrigtsen/cprint-python.git
				synced 2025-10-31 17:28:01 +01:00 
			
		
		
		
	Update readme.md again
This commit is contained in:
		
							parent
							
								
									3827a945f1
								
							
						
					
					
						commit
						53ab16c54a
					
				
							
								
								
									
										12
									
								
								readme.md
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								readme.md
									
									
									
									
									
								
							| @ -1,23 +1,23 @@ | |||||||
| #cprint for Python | # cprint for Python | ||||||
| 
 | 
 | ||||||
| cprint / colorPrint is a simple prettyprint function for python using ANSI escape characters. | cprint / colorPrint is a simple prettyprint function for python using ANSI escape characters. | ||||||
| Call cprint(str), inserting the cprint codes surrounded by percent signs(Ex. below). | Call cprint(str), inserting the cprint codes surrounded by percent signs(Ex. below). | ||||||
| Using getString(str) directly returns a string instead of printing to stdout. | Using getString(str) directly returns a string instead of printing to stdout. | ||||||
| 
 | 
 | ||||||
| Several color tags and modifiers can be used in the same tag if they are separated by a comma | Several color tags and modifiers can be used in the same tag if they are separated by a comma | ||||||
| ### | ### Colors | ||||||
|   Text colors are denoted with the first lower case letter |   Text colors are denoted with the first lower case letter | ||||||
|   -> (r)ed (g)reen (b)lue (c)yan (m)agenta (y)ellow (bl)ack (w)hite |   -> (r)ed (g)reen (b)lue (c)yan (m)agenta (y)ellow (bl)ack (w)hite | ||||||
|   Background colors are the same, but with a leading "b" |   Background colors are the same, but with a leading "b" | ||||||
| 
 | 
 | ||||||
| ###Modifiers | ### Modifiers | ||||||
|   (B)old (U)nderlined (I)nverted/reversed (RS)=reset/default |   (B)old (U)nderlined (I)nverted/reversed (RS)=reset/default | ||||||
| 
 | 
 | ||||||
| ###Macros/Shortcuts | ###M acros/Shortcuts | ||||||
|   (warning)   = Yellow, Bold |   (warning)   = Yellow, Bold | ||||||
|   (error)     = Red   , Bold, Underlined |   (error)     = Red   , Bold, Underlined | ||||||
| 
 | 
 | ||||||
| ###Example code: | ### Example code: | ||||||
| ``` | ``` | ||||||
| from cprint import * | from cprint import * | ||||||
| cprint("%bc,r%This is pretty high visibility %y%with different colors") | cprint("%bc,r%This is pretty high visibility %y%with different colors") | ||||||
| @ -25,4 +25,4 @@ cprint("%bw,b%This text is blue on white, %B,U,I% this is bold, underlined and w | |||||||
| cprint("%warning%This is a warning!") | cprint("%warning%This is a warning!") | ||||||
| cprint("%error%And this is an error") | cprint("%error%And this is an error") | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 GitHub
							GitHub