Offline
Full Member
Karma: 0
Posts: 118
|
 |
« on: June 03, 2012, 05:27:17 pm » |
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
|
|
|
|
« Last Edit: June 04, 2012, 09:54:21 am by hfp777 »
|
Logged
|
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 your answer and clarify as much as possible. It will help me understand better and will help people like me googling this answer/solution.
|
|
|
|
Seattle, WA USA
Online
Brattain Member
Karma: 316
Posts: 35556
Seattle, WA USA
|
 |
« Reply #1 on: June 03, 2012, 09:16:34 pm » |
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?
|
|
|
|
|
Logged
|
|
|
|
|
Des Moines, WA - USA
Online
God Member
Karma: 21
Posts: 705
|
 |
« Reply #2 on: June 03, 2012, 10:19:27 pm » |
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!
|
|
|
|
« Last Edit: June 03, 2012, 10:21:23 pm by lloyddean »
|
Logged
|
|
|
|
|
Gosport, UK
Offline
Faraday Member
Karma: 19
Posts: 3117
|
 |
« Reply #3 on: June 04, 2012, 02:42:32 am » |
Isn't Processing Java?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 118
|
 |
« Reply #4 on: June 04, 2012, 06:27:03 am » |
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?
|
|
|
|
|
Logged
|
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 your answer and clarify as much as possible. It will help me understand better and will help people like me googling this answer/solution.
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 118
|
 |
« Reply #5 on: June 04, 2012, 06:28:24 am » |
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.
|
|
|
|
|
Logged
|
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 your answer and clarify as much as possible. It will help me understand better and will help people like me googling this answer/solution.
|
|
|
|
Gosport, UK
Offline
Faraday Member
Karma: 19
Posts: 3117
|
 |
« Reply #6 on: June 04, 2012, 06:39:07 am » |
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++.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 118
|
 |
« Reply #7 on: June 04, 2012, 09:53:50 am » |
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?
|
|
|
|
|
Logged
|
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 your answer and clarify as much as possible. It will help me understand better and will help people like me googling this answer/solution.
|
|
|
|
Austin, TX
Offline
Faraday Member
Karma: 41
Posts: 5176
CMiYC
|
 |
« Reply #8 on: June 04, 2012, 10:01:33 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 118
|
 |
« Reply #9 on: June 04, 2012, 12:22:22 pm » |
Yes I saw this before but there is no explanation whatsoever regarding how to install it?
|
|
|
|
|
Logged
|
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 your answer and clarify as much as possible. It will help me understand better and will help people like me googling this answer/solution.
|
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 118
|
 |
« Reply #11 on: June 05, 2012, 11:36:51 am » |
Copying the .plist files to the directory mentioned in the doc doesn't cut it 
|
|
|
|
|
Logged
|
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 your answer and clarify as much as possible. It will help me understand better and will help people like me googling this answer/solution.
|
|
|
|
Gosport, UK
Offline
Faraday Member
Karma: 19
Posts: 3117
|
 |
« Reply #12 on: June 05, 2012, 11:56:29 am » |
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 <key>BBLMLanguageSuffix</key> <string>.ino</string>
and it now works for ino files instead.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 118
|
 |
« Reply #13 on: June 07, 2012, 12:43:03 pm » |
Thanks, this method worked. I initially created the directory in my user folder not on the Macintosh HD
|
|
|
|
|
Logged
|
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 your answer and clarify as much as possible. It will help me understand better and will help people like me googling this answer/solution.
|
|
|
|
|