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 5940779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:00:59+00:00 2026-05-22T16:00:59+00:00

Is there any way I can get ctags to somehow support the built-in functions

  • 0

Is there any way I can get ctags to somehow support the built-in functions provided by PHP/Python (Or whatever I’m working with at that moment), so that I can also use those in Source Explorer in vim and alike?

Update:

Okay so with python I can just run ctags on the source folder to get a tags file with the built in functions, though with PHP it doesn’t seem to work, however the source files of PHP contain lines like the following:

/* {{{ proto resource mysql_connect([string hostname[:port][:/path/to/socket] [, string username [, string password [, bool new [, int flags]]]]])

So if I could somehow parse that with ctags I would get the appropriate functions in my tags file. I tried using –regex-C for it to pick it up but the following didn’t seem to work.

--regex-C='/\/\* \{\{\{ proto ([^ ]+) ([^ (]*)/\2/f/'

Any idea how to get this to work?

Also with python I seem to get the “class ClassName:” line with classes, is there any way for that to also include the init function?

Update:
I’ll just create a separate question for PHP, thanks for the answers.

  • 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-22T16:01:00+00:00Added an answer on May 22, 2026 at 4:01 pm

    ctags lets you build your tags database incrementally with the --append option; if you want the C definition for the Python routines (much? some? a little bit? is implemented directly in C, some in Python itself) you can run:

    ctags -R
    ctags --append -R /path/to/python-source
    

    If you want just a portion of the Python source code included, you can give just that portion; as you said in your comment, Lib/ is the place to start 🙂

    ctags -R
    ctags --append -R /path/to/python-source/Lib
    

    Given that most interpreted languages (and even byte-code-compiled languages) wind up implementing a fair amount of their interface in C behind the scenes, it might be difficult to have seamless transitions between your source and the source of the APIs you rely on.

    I’ve found it helpful to have multiple databases for source code; sometimes questions are best answered with cscope, sometimes gid, sometimes ctags. ctags is superb for integration into vim, but gid is frequently easier to script.

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

Sidebar

Related Questions

Is there any way I can get my Python code syntax highlighted in Microsoft
Is there any way I can get all notices, warnings, errors etc that PHP
Is there any way I can get VS2008 to provide further detail on how
Is there any way I can get jQuery to perform a function when you
Is there any way I can get a share picker like the one seen
I wanted to ask if there is any way i can get path of
I can't believe I'm asking this but, is there any way to get Chrome
Is there any way I can get the last inserted ID if I am
Is there any way i can get the memory usage for all processes currently
Is there any way I can get a list of all the classes in

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.