Go Back   The macosxhints Forums > OS X Help Requests > UNIX - General



Reply
 
Thread Tools Rate Thread Display Modes
Old 02-11-2013, 11:50 AM   #1
ronandelorch
Prospect
 
Join Date: Sep 2012
Posts: 4
How to compile Java code to obtain a BBCCode editor

[This question was initially posted at the “OS X Developer” forum by mistake]

Hello all,

I would like to be able to read and edit BBCode just the way Firefox or Safari reads HTML code. So I downloaded some source code at wysiwygbbcode.codeplex.com

but now I’m at a loss about how to compile this Java code and actually obtain a BBCode editor. I asked how to do it on tha abovementioned site,
but got no answer.

Thanks in advance for any help,

Ewan
ronandelorch is offline   Reply With Quote
Old 02-11-2013, 01:38 PM   #2
DeltaMac
League Commissioner
 
Join Date: Jan 2002
Posts: 7,960
I downloaded both the main download, and the most up-to-date download, under the "source code" tab. Both unzip to folders with the SAME group of files inside. The difference is the dates, and only one file is a different size - editor.css
I think that you may be over-thinking this a little. The "app" and the "source code" have the same complement of files and folders.
I also think that you don't get any response, because the "source code" is not really code that needs compiling, and is simply a later version of the javascript executables.
And - no compile is needed, and you just load and use the editor in your browser.
This is likely very simple for someone that has experience with using in-browser code editors (and that's not me ... )
DeltaMac is offline   Reply With Quote
Old 02-12-2013, 12:50 AM   #3
ronandelorch
Prospect
 
Join Date: Sep 2012
Posts: 4
Quote:
Originally Posted by DeltaMac
I downloaded both the main download, and the most up-to-date download, under the "source code" tab. Both unzip to folders with the SAME group of files inside. The difference is the dates, and only one file is a different size - editor.css
I think that you may be over-thinking this a little. The "app" and the "source code" have the same complement of files and folders.
I also think that you don't get any response, because the "source code" is not really code that needs compiling, and is simply a later version of the javascript executables.
And - no compile is needed, and you just load and use the editor in your browser.
This is likely very simple for someone that has experience with using in-browser code editors (and that's not me ... )

This is indeed probably a simple matter, but I’m not over-thinking it. How do I “load and use the editor” in my browser (that would be Firefox) ? I tried opening the .js file with Firefox but it just reads it as an ordinary text file.
ronandelorch is offline   Reply With Quote
Old 02-12-2013, 02:07 AM   #4
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 31,941
1) I moved your original post into the Developers section because you had asked about compiling Java code. That sort of thing belongs to the developer realm.

2) But you now seem to be talking about JavaScript - which has nothing at all to do with Java, by the way. JavaScript does not need to get compiled before use. But it usually is executed in the context of a browser. And the browser loads the JavaScript code from some HTML code for a web page. So you need to read some JavaScript tutorials (Google will find lots) and then create yourself an HTML file that you can load in your browser and that refers to the JavaScript you have apparently downloaded.
Bottom line: You need to read some JavaScript tutorials.
__________________
hayne.net/macosx.html
hayne is offline   Reply With Quote
Old 02-12-2013, 07:17 AM   #5
DeltaMac
League Commissioner
 
Join Date: Jan 2002
Posts: 7,960
hayne, of course, is correct. The editor that you have downloaded is not Java, but Javascript. The two are not related to each other, except for the use of the word "Java"

I imagine the "sample.html" file - one of the files that is included with your BBCode download, is provided to help you with what you need to do.

And, there's some help files here: http://www.shajul.net/wysiwyg-bbcode-editor/help/
DeltaMac is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 04:49 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.