vim-scripts / xml_cbks Goto Github PK
View Code? Open in Web Editor NEWExtends xmledit package to provide schema-specific attribute callbacks easily
Home Page: http://www.vim.org/scripts/script.php?script_id=662
Extends xmledit package to provide schema-specific attribute callbacks easily
Home Page: http://www.vim.org/scripts/script.php?script_id=662
This is a mirror of http://www.vim.org/scripts/script.php?script_id=662 This script extends the functionality of the excellent xmledit plugin. xmledit gives you a single global callback for inserting attributes, XmlAttribCallback. The suggestion is that this method will dispatch based on which tag is received. The script provides a hook that will set the variable b:xml_doctype when loaded (via the function XmlFindDocType). Then it provides a generic XmlAttribCallback which does the following: 1. Looks for a file called $VIMXMLEDITCALLBACKS/{b:xml_doctype}.vim 2. If that file exists and hasn't already been loaded, it is sourced This file is expected to provide a function called XmlAttribCallback_{b:xml_doctype}. This function is called if it exists, passing the xml_tag as the argument. The intent is so that you can have a different callback for each doctype (schema) which will automatically be available when you edit an XML file of a specified type. The plugin also provides a way to provide any doctype specific functionality automatically (you can put anything in the sourced script). It is almost like a secondary ftplugin for xml. Note: This is my first vim script (I've been using vim for less than 3 weeks) so any suggestions for improvement are very welcome.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.