Wednesday, November 3, 2010

comment based anchor tags

I'm looking for a way to insert links to related files via comments,
it should work in a similar way to html anchors.


eg.

in php:

echo "foo"; // ref("name","path/to/related/javascript/file#foo");

.js:

console.log("foo"); // a("foo")

console.log("bar"); // a("bar")

somethingThatTalksToRailsViaAjax("hello world"); // ref("controller","/
application/controllers/world#hello");

.rb:

puts "hello world"; # a("hello");


I hope this example explains what i'm trying to acheive. It would be
nice for someone to make this for me or point me in the right
direction to an existing plugin or similar plugin to base this off.

I think this would be hugely beneficial especially for mvc and coding
where a mix of languages is involved as i don't think ctags mixes up
languages by default.

Thanks.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: