Find the answer to your Linux question:
Results 1 to 7 of 7
Hi buddies, I just started learning programming C++ on Linux. I want a tool to view the existing source code of others. I used Microsoft VC++ and Souce Insight on ...
  1. #1
    Just Joined!
    Join Date
    Mar 2008
    Posts
    4

    Question [help] Want a tool to view source code

    Hi buddies,
    I just started learning programming C++ on Linux. I want a tool to view the existing source code of others. I used Microsoft VC++ and Souce Insight on Windows. Is there such a tool on Linux, especially on Ubuntu? Thanks

  2. #2
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    Most Linux software that I've come across is open source...Just download the source..Or do you mean your looking for and IDE...Code::Blocks
    Last edited by gerard4143; 02-01-2010 at 02:49 AM.
    Make mine Arch Linux

  3. #3
    Just Joined!
    Join Date
    Mar 2008
    Posts
    4
    An IDE is OK. As long as it can quickly jump into a function definition if I wish. On windows, some poeple use SouceInsight as an IDE.

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    If you want something that will highlight syntax elements and let you edit easily, I like the nedit text editor. It offers syntax highlighting for just about every programming language known, and a few not hardly known... It also has one of the best search tools I know, supporting complex regular expressions across many files. I have used this to find specific programming constructs in source trees of hundreds of files. Sort of like a visual egrep.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  5. #5
    Just Joined!
    Join Date
    Mar 2008
    Posts
    4
    Quote Originally Posted by Rubberman View Post
    If you want something that will highlight syntax elements and let you edit easily, I like the nedit text editor. It offers syntax highlighting for just about every programming language known, and a few not hardly known... It also has one of the best search tools I know, supporting complex regular expressions across many files. I have used this to find specific programming constructs in source trees of hundreds of files. Sort of like a visual egrep.
    Highlight syntax is necessary. Of course, searching files for the current class or function is also needed. I used VIM, which also has the syntax highlight for many program languages. But I will try your suggestion. nedit is a new tool for me.

  6. #6
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    I'm a huge Vim fan, and I don't even use IDEs because I prefer using its power and the commandline. If you're looking for another editor with the same power but another interface, you can look at Emacs, which is designed completely differently, but which is a very powerful text editor.

    Also, I point you towards ctags. ctags takes all of the files in a project and creates a "tags" file for them which indexes all of the functions. You can now jump from any function call to its definition from within Vim. I'm sure you can do this somehow in Emacs as well.

    VI and VIM editor: Tutorial and advanced features (go to the section called "Tagging")
    DISTRO=Arch
    Registered Linux User #388732

  7. #7
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Editors are like lovers. Each is different, but provides mostly the same benefits.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...