|
|
#1 |
|
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 |
|
|
|
|
|
#2 |
|
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 ... ) |
|
|
|
|
|
#3 | |||||||||||||||||||||||
|
Prospect
Join Date: Sep 2012
Posts: 4
|
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. |
|||||||||||||||||||||||
|
|
|
|
|
#4 |
|
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 |
|
|
|
|
|
#5 |
|
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/ |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|