POV-Ray : Newsgroups : povray.off-topic : How to read source code? : Re: How to read source code? Server Time
29 Jul 2024 02:24:56 EDT (-0400)
  Re: How to read source code?  
From: Patrick Elliott
Date: 6 Feb 2013 22:29:00
Message: <51131f7c$1@news.povray.org>
On 2/6/2013 1:09 PM, Le_Forgeron wrote:
> Le 06/02/2013 20:30, Kenneth nous fit lire :
>> Not how to 'understand' source code ;-)
>>
>> Just wondering what kind of little Windows app I could download to actually
>> *see* (take a look at) the source code for a program (well, one that has
>> publicly-available source code, anyway--like POV-Ray.) I've never thought of
>> doing so before now, and don't know what's involved. Not to EDIT the stuff, or
>> compile/recompile it; that's way beyond me.
>>
>>  From what I've read, some 'text' editors can do this. Or would it require a 'hex
>> editor'?  Or perhaps something like Notepad++, which apparently can open and
>> display programs written in C, C++ etc?
>>
>
> Any text editor (not wordprocessor) should do.
> You might enjoy an easy to use search function (just to spot all the
> occurrence of a variable, or finding a function)
> An optional line numbering might help too.
>
>> What I would basically like to do is see the code the way the original developer
>> saw it, while writing it (in whatever programming language that happened to be.)
>> I might even learn a few things!
>
> <start holy war>
> * PFE (programmer's File Editor)
> * use eclipse with C/C++ or Java setting
> * use Microsoft Visual Studio (or whatever its name), if available as
> free edition on your OS (IIRC, MSVC 2012 need something like Vista or 7
> and won't install on XP)
>
Scite/WScite

Its got something for nearly every bloody language possible, and now 
supports its own scripting using Lua, for which someone else made.. 
scintalua, or something like that. Basically, a "prebuilt" dll, which 
extends Scite, so that you can slap together a simple lexer, to color 
code, and such (documentation could use some work, and a few things I 
never did work out while trying to create something for use with LSL 
(Linden Scripting Language), so, if there is something it doesn't 
support, its fairly easy to patch so it can.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.