Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6736495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:08:10+00:00 2026-05-26T11:08:10+00:00

I’m using a taglist plugin for a few days and now I tried it

  • 0

I’m using a taglist plugin for a few days and now I tried it with Javascript, but in Javascript it shows only partial information or no information. It seems that the problem could be with namespaces, because the functions are in

var namespace_name = {

f1: function() {
},
f2: function() {
},
.
.
.

};

or this sort of functions (anonymous)

var something = (function f() {
   }
   ...
})();

Do you know how to correct this problem?

thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T11:08:10+00:00Added an answer on May 26, 2026 at 11:08 am

    Did you try TagBar? It’s a more modern take on the same idea which works better with JavaScript and even supports jsctags.

    taglist on the left, tagbar on the right

    TagList on the left, TagBar on the right.

    TagList doesn’t work because Exuberant ctags (the program used by TagList to index your code) is not very good with JavaScript, especially the modern stuff with callbacks, closures and self executing functions.

    On the other hand, TagBar uses jsctags for JavaScript if it’s available. Jsctags is made with modern JavaScript in mind and as such works a lot better.

    Compare these tag files generated against the following code (based on your samples):

    var namespace_name = {
    
        f1: function() {
            window.alert("f1");
        },
        f2: function() {
            window.alert("f2");
        }
    };
    var something = (function f() {
        window.alert("something");
    })();
    

    Output of $ ctags .:

    // empty file expect for the header
    

    Output of $ jsctags .:

    // skipped header
    namespace_name  test.js /^var namespace_name = {$/;"    v   lineno:1    type:Object
    f1  test.js /^\tf1: function() {$/;"    f   lineno:3    type:void function()
    f2  test.js /^\tf2: function() {$/;"    f   lineno:6    type:void function()
    f   test.js /^var something = (function f() {$/;"   f   lineno:11   type:void function()
    something   test.js /^var something = (function f() {$/;"   v   lineno:11   type:undefined
    

    There are a bunch of questions on SO about customizing exuberant ctags to make it work better with JavaScript: here and here.

    So, basically, there are two ways to solve your problem: customize ctags or use tagbar+jsctags.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am reading a book about Javascript and jQuery and using one of the
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I have just tried to save a simple *.rtf file with some websites and
I used javascript for loading a picture on my website depending on which small
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.