On Dec 19, 2008, at 10:26 AM, Jeanna wrote: > I am a new Mac/BBedit user making the transition from EditPlus > (Windows) to BBedit for php coding. I'm using the default php syntax > highlighting. > > Is it possible to highlight variable names or user-defined functions?
Maybe this isn't exactly what you were looking for, but have you tried using Exuberant Ctags (http://ctags.sourceforge.net/)? Check out page 320 of the BBEdit User Manual for an overview. If you have a ctags file generated at the top level of your code tree, BBEdit will use it to apply syntax coloring to indexed symbols, which can include class and function names and possibly variables names as well, depending on your ctags configuration. In addition to syntax highlighting, you can also select an indexed symbol and hit a keyboard shortcut (or select from the menu bar, if you prefer) to have BBEdit show you where that symbol is defined in your code. I've found this to be extremely helpful, particularly when exploring large projects developed by someone else. Unfortunately, I think Mac OS X's included ctags utility is quite out of date. But you can get a recent version using the MacPorts package (http://www.macports.org/ ). Once you have ctags installed, you'll need to run a command to generate the tags file. A Google search will yield all kinds of information about configuration options. Or you can use my AppleScript at: http://web.me.com/dennisrande/downloads/Update%20Ctags%20File.zip -Dennis --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. 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 specific feature request or would like to report a suspected (or confirmed) problem with the software, please email to "[email protected]" rather than posting to the group. -~----------~----~----~----~------~----~------~--~---
