[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.javascript

How to write a text editor in Java

ram

12/9/2015 2:52:00 PM

Newsgroups: comp.lang.javascript,comp.lang.java.programmer

There is a tool called »AsciidocFX« that will convert your
ASCIIdoc to a nice book:

watch?v=2goMtz_vdtM

. This is a Java application. What does Java have to do with
JavaScript?

This Java application contains a text editor.
I am always curious to learn how to program a text editor.
So I obtained the sources for AsciidocFx.

And this is what I learned: This is how you write a text
editor in Java in 2015: You include a WebView that is based
on WebKit. The editor then is actually Ace (ace.c9.io), i.e.,
it is written in JavaScript. Actually, the Java program is
a thin container. All the actual work is done by JavaScript
(scripts).

Statistics:

*.java files of AsciidocFx, octets add up to: 572 Kibioctets
*.js* files of AsciidocFx, octets add up to: 11.45 Mebioctets

JavaScript - the future of Java!

First, write your application in JavaScript.

Then, if you want a single cross-platform »executable file«,
add a thin container in Java.

Newsgroups: comp.lang.javascript,comp.lang.java.programmer

And please remember: As soon as the discussion moves from
both Java *and* JavaScript to any other topic, you should
set the Followup-To header appropriately!

3 Answers

JR

12/9/2015 3:02:00 PM

0

On 09-12-2015 12:52, Stefan Ram wrote:
> Newsgroups: comp.lang.javascript,comp.lang.java.programmer
>
> There is a tool called »AsciidocFX« that will convert your
> ASCIIdoc to a nice book:
>
> watch?v=2goMtz_vdtM
>
> . This is a Java application. What does Java have to do with
> JavaScript?

Java is to JavaScript as Car is to Carpet... The origin of this weird
name, JavaScript, is better explained by the creator of the language [1].

[1] <http://chimera.labs.oreilly.com/books/1234000001808/pr0...


>
> JavaScript - the future of Java!

nonsense.

I know of some people moving from Java and Python to Go (Golang).


--
Joao Rodrigues

Jukka Lahtinen

12/10/2015 5:25:00 PM

0

Joao Rodrigues <groups_jr-1@yahoo.com.br> writes:
> On 09-12-2015 12:52, Stefan Ram wrote:

>> . This is a Java application. What does Java have to do with
>> JavaScript?

> Java is to JavaScript as Car is to Carpet... The origin of this weird

But a car may contain carpets.

--
Jukka Lahtinen

JR

12/10/2015 8:06:00 PM

0

Jukka Lahtinen wrote:
> Joao Rodrigues writes:
>> On 09-12-2015 12:52, Stefan Ram wrote:
>
>>> . This is a Java application. What does Java have to do with
>>> JavaScript?
>
>> Java is to JavaScript as Car is to Carpet... The origin of this weird
>
> But a car may contain carpets.
>

Better: "Java is to JavaScript as Ham is to Hamster" :-)

--
Joao Rodrigues