Thanks, that works great! On Thursday, January 24, 2013 9:13:45 AM UTC-8, Patrick Woolsey wrote: > > At 08:03 -0800 01/24/2013, Randall Venhola wrote: > >I am working with Scons (scons.org). The programming language is Python. > >The standard is to not use file extensions - the file names are always > >SConstruct and SConscript. I want BBEdit to recognize the files as Python > >so that I get the function pop-up and colourization. I get this simply by > >renaming the file to add a .py extension (e.g SConstruct.py and > >SConscript.py). Renaming them is not really a solution, as it basically > >breaks other parts of the script. I searched this list and the User > Manual > >but no luck. > > > >How do I get BBEdit to set the language in this situation? > > > Sounds like just the job for an embedded Emacs variable :-), which can > directly specify the file's language type. > > (For info about using these variables with BBEdit, please see the section > "Emacs Local Variables" in Chapter 3 of the PDF manual.) > > By way of example, you can place the necessary variable (in this case, > 'mode') & its value, either a) in the first line of the file, or b) within > a block at the end of the file, like so: > > ==== > # -*- mode: python -*- > > print "Hello, World" > > # Local Variables: > # mode: python > ==== > > [NB you needn't include both the initial line and the block; either will > suffice.] > > > Regards, > > Patrick Woolsey > == > Bare Bones Software, Inc. <http://www.barebones.com/> >
-- -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at <http://groups.google.com/group/bbedit?hl=en> If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
