|
View:
New views
10 Messages
—
Rating Filter:
Alert me
|
|
|
pragma mark with python in xcode?Anybody know how to make #pragma mark work with python in xcode?
dan _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@... http://mail.python.org/mailman/listinfo/pythonmac-sig |
|
|
Re: pragma mark with python in xcode?python has pragmas? I dont thinks so
On Thu, Aug 7, 2008 at 3:48 PM, Daniel Ashbrook <anjiro@...> wrote: Anybody know how to make #pragma mark work with python in xcode? -- "lalalalala! it's not broken because I can use it" http://linux.slashdot.org/comments.pl?sid=194281&threshold=1&commentsort=0&mode=thread&cid=15927703 _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@... http://mail.python.org/mailman/listinfo/pythonmac-sig |
|
|
Re: pragma mark with python in xcode?Nehemiah Dacres wrote:
> Daniel Ashbrook wrote: >> Anybody know how to make #pragma mark work with python in xcode? > python has pragmas? I dont thinks so No, but XCode has pragmas. Well, #pragma mark at least. Sadly, Dan, I don't know the answer to your question, but I am interested in any (intelligent) replies you get, because I've been using the #pragma mark in my Objective-C stuff for a while, and found it quite handy. Thanks, Blake. _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@... http://mail.python.org/mailman/listinfo/pythonmac-sig |
|
|
Re: pragma mark with python in xcode?On Fri, Aug 8, 2008 at 11:45 AM, Blake Winton <bwinton@...> wrote: Nehemiah Dacres wrote: What are u using a #pragma for in python? You See that POUND sign your using, thats a COMPILER DIRECTIVE, python is an interpreted scripting language, no PREPROCESSING allowed , (except for the .pyc code but thats compiled if you want to get technical with me) Am I misinterpreting you intentions? -- "lalalalala! it's not broken because I can use it" http://linux.slashdot.org/comments.pl?sid=194281&threshold=1&commentsort=0&mode=thread&cid=15927703 _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@... http://mail.python.org/mailman/listinfo/pythonmac-sig |
|
|
Re: pragma mark with python in xcode?Nehemiah Dacres wrote:
> What are u using a #pragma for in python? You See that POUND sign your > using, thats a COMPILER DIRECTIVE, python is an interpreted scripting > language, no PREPROCESSING allowed , (except for the .pyc code but thats > compiled if you want to get technical with me) > Am I misinterpreting you intentions? Yes. Xcode supports "#pragma mark foo" that puts "foo" into a dropdown menu above your code in the editor so you can quickly jump between sections. dan _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@... http://mail.python.org/mailman/listinfo/pythonmac-sig |
|
|
Re: pragma mark with python in xcode?Daniel Ashbrook wrote:
> Xcode supports "#pragma mark foo" that puts "foo" into a dropdown menu > above your code in the editor so you can quickly jump between sections. As "#" is a comment in python, it certainly could be done just the same way, but not if Apple hasn't enabled that. Well, XCode, as a rule, does not support python that well. Nor does Apple show any intention of opening up XCode so that good language-specific modes could be written by third parties. So I suggest you find another editor! -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker@... _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@... http://mail.python.org/mailman/listinfo/pythonmac-sig |
|
|
Re: pragma mark with python in xcode?On 7 Aug, 2008, at 22:48, Daniel Ashbrook wrote: > Anybody know how to make #pragma mark work with python in xcode? That doesn't seem to work, I guess Xcode only looks for "#pragma mark" in C code and not in python code. If you have an ADC account you can file a feature request for this at bugreport.apple.com. Ronald _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@... http://mail.python.org/mailman/listinfo/pythonmac-sig |
|
|
Re: pragma mark with python in xcode?On 11-Aug-08, at 11:10 AM, Daniel Ashbrook wrote: > Nehemiah Dacres wrote: > > What are u using a #pragma for in python? You See that POUND sign > your >> using, thats a COMPILER DIRECTIVE, python is an interpreted >> scripting language, no PREPROCESSING allowed , (except for the .pyc >> code but thats compiled if you want to get technical with me) >> Am I misinterpreting you intentions? > > Yes. > > Xcode supports "#pragma mark foo" that puts "foo" into a dropdown > menu above your code in the editor so you can quickly jump between > sections. > > > dan From Apple's "Xcode Workspace Guide:, chapter 6, section 2: http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeWorkspace/600-The_Text_Editor/chapter_6_section_2.html you can use these inside a comment and the drop down will display them in bold, like the #pragma mark does in C code: MARK: TODO: FIXME: !!!: ???: You can use "MARK:" just like you use "#pragma mark" in C code, and it ("MARK:") will not show up in the drop down, just the comment following it. The others will be included in the drop down item. #MARK: Section 1 displays as: "Section 1" #!!!: Look at this now! displays as: "!!! Look at this now" Mike _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@... http://mail.python.org/mailman/listinfo/pythonmac-sig |
|
|
Re: pragma mark with python in xcode?Heeeey, awesome! Who woulda thought that reading the documentation would
actually come in handy? Much obliged, Mike! dan Mike Covill wrote: > From Apple's "Xcode Workspace Guide:, chapter 6, section 2: > > http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeWorkspace/600-The_Text_Editor/chapter_6_section_2.html > > > you can use these inside a comment and the drop down will display them > in bold, like the #pragma mark does in C code: > > MARK: > TODO: > FIXME: > !!!: > ???: > > You can use "MARK:" just like you use "#pragma mark" in C code, and it > ("MARK:") will not show up in the drop down, just the comment following > it. The others will be included in the drop down item. > > #MARK: Section 1 > displays as: "Section 1" > > #!!!: Look at this now! > displays as: "!!! Look at this now" > > Mike > _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@... http://mail.python.org/mailman/listinfo/pythonmac-sig |
|
|
Re: pragma mark with python in xcode?Sigh, now you see my misunderstanding, sorry for the abuse of CAPS LOCK but #pragma marks are only called #pragma because of the preprocessor, which is why GCC is getting away from that. (note the gcc handbook, i checked it out one week) anyway, it would be silly for an editor to detect things that are language specific in a non language spesific way. if you just said you wanted to mark places in your code, then you would have gotten that sooner. (in an editor spesific manor)
note : I use Vim On Tue, Aug 12, 2008 at 8:16 AM, Daniel Ashbrook <anjiro@...> wrote: Heeeey, awesome! Who woulda thought that reading the documentation would actually come in handy? Much obliged, Mike! -- "lalalalala! it's not broken because I can use it" http://linux.slashdot.org/comments.pl?sid=194281&threshold=1&commentsort=0&mode=thread&cid=15927703 _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@... http://mail.python.org/mailman/listinfo/pythonmac-sig |
| Free embeddable forum powered by Nabble | Forum Help |