Go Down

Topic: BBEdit v10 and syntax highlighting (Read 2 times) previous topic - next topic

hfp777

Jun 04, 2012, 12:27 am Last Edit: Jun 04, 2012, 04:54 pm by hfp777 Reason: 1
Hi all,

I would like to use BBEdit as a code editor.
However, I cannot find how to add Arduino syntax highlighting and completion (the reason why I wanted to use BBEdit in the first place...)

Has anyone ever pulled that off?

--edit: rephrase
I am a total amateur at electronics and all things related. I have no education in the matter other than self taught.

Please factor this in

PaulS

Quote
However, I cannot find how to add Processing syntax highlighting and completion

Are you in the habit of asking Arduino questions on the Processing forum, too? What exactly is your Arduino issue?

lloyddean

#2
Jun 04, 2012, 05:19 am Last Edit: Jun 04, 2012, 05:21 am by lloyddean Reason: 1
Depending upon your version of BBEdit the following should be used as a rough guide.

BBEdit->Preferences

Select "Languages" from the list on the left.

Click the '+' under the "Custom Extension Mappings" pane.

Select the "Suffix" side of the new entry and enter extension used by your version the Arduino IDE.

Click on the "Languages" side and select "C++" form the pop-up menu.

You should be good to go!

dxw00d


hfp777


Quote
However, I cannot find how to add Processing syntax highlighting and completion

Are you in the habit of asking Arduino questions on the Processing forum, too? What exactly is your Arduino issue?


Processing is the language Arduino is using, is it not?
I am a total amateur at electronics and all things related. I have no education in the matter other than self taught.

Please factor this in

hfp777


Depending upon your version of BBEdit the following should be used as a rough guide.

BBEdit->Preferences

Select "Languages" from the list on the left.

Click the '+' under the "Custom Extension Mappings" pane.

Select the "Suffix" side of the new entry and enter extension used by your version the Arduino IDE.

Click on the "Languages" side and select "C++" form the pop-up menu.

You should be good to go!


Thanks but when doing this, instructions like pinMode, Serial.begin etc are not recognised and highlighted. This is very useful to read the code and this is what I am trying to accomplish in BBEdit.
I am a total amateur at electronics and all things related. I have no education in the matter other than self taught.

Please factor this in

dxw00d

Quote
Processing is the language Arduino is using, is it not?


No. The Arduino IDE is based on the Processing IDE. Processing (the language) is Java, the Arduino language is C/C++.

hfp777


Quote
Processing is the language Arduino is using, is it not?


No. The Arduino IDE is based on the Processing IDE. Processing (the language) is Java, the Arduino language is C/C++.


My bad. So how to have BBEdit display Arduino's language like in the IDE where functions and libraries are highlighted?
I am a total amateur at electronics and all things related. I have no education in the matter other than self taught.

Please factor this in

James C4S

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

hfp777

I am a total amateur at electronics and all things related. I have no education in the matter other than self taught.

Please factor this in

James C4S

I guess I would install those files mentioned on page 360 of this document:
http://pine.barebones.com/manual/BBEdit_10_User_Manual.pdf
Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

hfp777

Copying the .plist files to the directory mentioned in the doc doesn't cut it :(
I am a total amateur at electronics and all things related. I have no education in the matter other than self taught.

Please factor this in

dxw00d

I've just downloaded BBEdit, and the files from github. I created a Macintosh HD/Library/Application Support/BBEdit/Language Modules directory and copied the github files to it. Started BBEdit and opened a .pde file and the highlighting was working. As I use IDE 1.0, I changed the file suffix line to
Code: [Select]
        <key>BBLMLanguageSuffix</key>
        <string>.ino</string>

and it now works for ino files instead.

hfp777

Thanks, this method worked. I initially created the directory in my user folder not on the Macintosh HD
I am a total amateur at electronics and all things related. I have no education in the matter other than self taught.

Please factor this in

Go Up