Added Formatting command for JSON & XML
This requires python3 to be installed along with standard set of modules.
This commit is contained in:
		
							parent
							
								
									2035eec6b7
								
							
						
					
					
						commit
						9cd50287b8
					
				| 
						 | 
					@ -67,3 +67,6 @@ function! NumberToggle()
 | 
				
			||||||
  endif
 | 
					  endif
 | 
				
			||||||
endfunc
 | 
					endfunc
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					""
 | 
				
			||||||
 | 
					com! FormatJson :%!python3 -m json.tool
 | 
				
			||||||
 | 
					com! FormatXML :%!python3 -c "import xml.dom.minidom, sys; print(xml.dom.minidom.parse(sys.stdin).toprettyxml())"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user