mirror of
				https://github.com/JKorf/CryptoExchange.Net
				synced 2025-10-30 18:07:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			603 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			603 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /*
 | |
| Language: Python REPL
 | |
| Requires: python.js
 | |
| Author: Josh Goebel <hello@joshgoebel.com>
 | |
| Category: common
 | |
| */
 | |
| 
 | |
| export default function(hljs) {
 | |
|   return {
 | |
|     aliases: ['pycon'],
 | |
|     contains: [
 | |
|       {
 | |
|         className: 'meta',
 | |
|         starts: {
 | |
|           // a space separates the REPL prefix from the actual code
 | |
|           // this is purely for cleaner HTML output
 | |
|           end: / |$/,
 | |
|           starts: {
 | |
|             end: '$', subLanguage: 'python'
 | |
|           }
 | |
|         },
 | |
|         variants: [
 | |
|           { begin: /^>>>(?=[ ]|$)/ },
 | |
|           { begin: /^\.\.\.(?=[ ]|$)/ }
 | |
|         ]
 | |
|       },
 | |
|     ]
 | |
|   }
 | |
| }
 |