Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
21 user(s) are online (13 user(s) are browsing Forums)

Members: 0
Guests: 21

more...
Support us!
Recent OS4 Files
OS4Depot.net



« 1 (2) 3 »


Re: Syntax highlighting -- need these?
Just popping in
Joined:
2015/9/28 23:42
From Bettendorf, IA, USA
Posts: 215
@all
Thanks for the good feedback.

@trixie
I tried to convert the MUI texteditor class to ReAction. I almost had it working, but gave up on it.
I want a full-featured and fast editor. Classes kind of limit some things. Jamie Krueger is running into some problems with his AVD that the richeditor.class is causing.

@walkero
Localization is done, albeit very basic.
The files are simple XML so anyone can make new ones.

@kas1e
I don't program on my Amiga because of the lack of a good editor. I program on Windows with EditPlus, turn to Amiga, FTP code over, compile, run. Very tedious and slow. CodeBench is too slow to start up. I will be able to write on my Amiga soon.

@Amigo1
struct has vertical selection. Hold Alt key and click and drag.


_________________
Workbench Explorer - A better way to browse drawers
   Report Go to top

Re: Syntax highlighting -- need these?
Just can't stay away
Joined:
2006/12/1 18:01
From Copenhagen, Denmark
Posts: 1107
@mritter0

+1 for CSS, SQL, Javascript and JSON.

BTW, can a file be highlighted in more than one syntax? E.g. it is quite common to have files with HTML and embedded PHP (and even SQL inside that), or HTML and embedded JS.

I assume "Localization" means .cd and .ct files? If not, +1 for those too.

Incidentally, the MUI texteditor.mcc class was already converted to ReAction many years ago, IIRC, by Allan Odgaard himself for OS 3.5 or 3.9 (subsequenly rewritten for OS4 by Stephan Rupprecht). That became the texteditor.gadget (on which, I think, the richeditor.gadget was subsequently based? Edit: Not the case, see next post by Rigo.).

Best regards,

Niels


Edited by nbache on 2019/6/28 8:10:46
   Report Go to top

Re: Syntax highlighting -- need these?
Supreme Council
Joined:
2006/11/19 18:16
From London, England
Posts: 1293
@nbache

Off topic here, but just to dispell any rumours: Richeditor was written from scratch, it does NOT contain code from anywhere else.

Simon

_________________
Comments made in any post are personal opinion, and are in no-way representative of any commercial entity unless specifically stated as such.
----
http://codebench.co.uk
   Report Go to top

Re: Syntax highlighting -- need these?
Just popping in
Joined:
2015/9/28 23:42
From Bettendorf, IA, USA
Posts: 215
@nbache
As of right now just one syntax is used. Unless I put multiple in one file, like HTML+CSS+JavaScript. But still keep CSS and JavaScript also separate since the file is identified by it's extension.

.html would be multi-file
.css would CSS only
.js would be JavaScript only


Yes, Localization is .cd|.ct files. Not much to do with them.

   Report Go to top

Re: Syntax highlighting -- need these?
Home away from home
Joined:
2007/1/26 21:48
From New Zealand
Posts: 2196
@mritter0

Quote:

I want a full-featured and fast editor. Classes kind of limit some things. Jamie Krueger is running into some problems with his AVD that the richeditor.class is causing.

Sounds good. Are you also going to include code hints and highlighting compilation warnings & errors? They're both very useful features, but are also challenging to make them work fast.

Hans

_________________
http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
   Report Go to top

Re: Syntax highlighting -- need these?
Just can't stay away
Joined:
2006/12/1 18:01
From Copenhagen, Denmark
Posts: 1107
@Rigo

Quote:
Richeditor was written from scratch, it does NOT contain code from anywhere else.
Thanks for the correction, my mistake/false memory. Sorry. (Earlier post corrected).

Best regards,

Niels

   Report Go to top

Re: Syntax highlighting -- need these?
Just can't stay away
Joined:
2006/12/1 18:01
From Copenhagen, Denmark
Posts: 1107
@mritter0

Quote:
As of right now just one syntax is used. Unless I put multiple in one file, like HTML+CSS+JavaScript. But still keep CSS and JavaScript also separate since the file is identified by it's extension.
Right, that would probably work fine for most purposes.

Not sure how it is done in NotePad++ or VS or similar on Windows, and of course it's always a little disconcerting to have to rely on arbitrary bits of filenames such as extensions - we never had to worry about that in AmigaOS (well, originally, at least ).

Best regards,

Niels

   Report Go to top

Re: Syntax highlighting -- need these?
Home away from home
Joined:
2006/12/4 23:15
Posts: 2143
@nbache

Quote:

and of course it's always a little disconcerting to have to rely on arbitrary bits of filenames such as extensions - we never had to worry about that in AmigaOS (well, originally, at least ).


It would be helpful to be able to choose the filetype from a menu for those files with unexpected or no extention.

Python or perl scripts often do not end in .py or .pl if they are being treated as applications for example. Similarly with ARexx i guess.

_________________
Blender For OS4.x : Blues : Walker Broad
   Report Go to top

Re: Syntax highlighting -- need these?
Quite a regular
Joined:
2006/11/27 14:24
From Scarfskerry
Posts: 578
@kas1e

Quote:
And none of editors we have have normal ability to do vertical selection of text areas like done in lets say "Far" on win32, or notepad++


You mean something like using the ALT key while moving the mouse as in Golded (Cubic IDE) ?


Bill.

   Report Go to top

Re: Syntax highlighting -- need these?
Just popping in
Joined:
2015/9/28 23:42
From Bettendorf, IA, USA
Posts: 215
@Hans
No code hints or handling compilation errors. Maybe down the road. Working on core editor features first.

@broadblues
There is the ability to choose type from menu. I wanted that, too. So you don't have to save it with an extension first.


_________________
Workbench Explorer - A better way to browse drawers
   Report Go to top

Re: Syntax highlighting -- need these?
Quite a regular
Joined:
2008/9/20 22:21
From Gothenburg, Sweden (via Finland)
Posts: 515
@mritter0

+Hollywood too

_________________
AmigaOS 4.1 FE Update 1 on Sam440ep-flex, 800Mhz, 1GB RAM, Radeon 9250 Resized Image
A1200/040, 2+4MB, external 3.5''HDD / A1200 (spare) / A500+ (sold) / C128 (sold)
http://m4rko.com/AMIGA
   Report Go to top

Re: Syntax highlighting -- need these?
Just popping in
Joined:
2007/2/1 13:29
From Bergamo, Italy
Posts: 96
@mritter0

I would *LOVE* to use a modern text editor on AmigaOS!!
I am ready to support it!

I am an addicted Notepad++ user and use quite a lot the functions offered by the TextFX plugin, and would love to see some of them implemented in a future release.
See available functions in the following animated gif

Resized Image


Resized Image

   Report Go to top

Re: Syntax highlighting -- need these?
Just can't stay away
Joined:
2009/5/1 17:57
From Czech Republic
Posts: 1057
@broadblues

Quote:
The full Codebench program's feature set has expanded considerably though, perhaps you need to switch some features off? I never ran it with the maxiumu dictionary settings for example.

It never occurred to me that the program's settings would slow down the gadget but now that you've mentioned the dictionary it makes perfect sense. Will have a look at it, thanks for the tip!

@mritter0

Quote:
I want a full-featured and fast editor. Classes kind of limit some things.

I know: a gadget will hardly ever offer the same as a full-fledged editor. Still, a gadget for a more sophisticated text editing is something we lack a great deal.

_________________
Smoke me a kipper, I'll be back for breakfast!

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
   Report Go to top

Re: Syntax highlighting -- need these?
Just popping in
Joined:
2015/9/28 23:42
From Bettendorf, IA, USA
Posts: 215
Maybe some of you can help speed the process up of adding languages. (I have already added 6 that were suggested or on my list.)

Can you point me to lists of functions/commands that I can copy/paste? I am not going to type in hundreds of items.

BlitzBasic
6502 Assembly
JSON
Lua
Markdown
Hollywood
Amos (if OS4 applicable)

_________________
Workbench Explorer - A better way to browse drawers
   Report Go to top

Re: Syntax highlighting -- need these?
Just popping in
Joined:
2012/10/17 19:42
Posts: 88
6502/65C02/65816

ADC
AND
ASL
BCC
BCS
BEQ
BIT
BMI
BNE
BPL
BRA
BRK
BRL
BVC
BVS
CLC
CLD
CLI
CLV
CMP
COP
CPX
CPY
DEC
DEX
DEY
EOR
INC
INX
INY
JMP
JSR
LDA
LDX
LDY
LSR
MVN
MVP
NOP
ORA
PEA
PEI
PER
PHA
PHB
PHD
PHK
PHP
PHX
PHY
PLA
PLB
PLD
PLP
PLX
PLY
REP
ROL
ROR
RTI
RTL
RTS
SBC
SEC
SED
SEI
SEP
STA
STP
STX
STY
STZ
TAX
TAY
TCD
TCS
TDC
TRB
TSB
TSC
TSX
TXA
TXS
TXY
TYA
TYX
WAI
WDM
XBA
XCE


Edited by Kamelito on 2019/6/29 21:21:14
Edited by Kamelito on 2019/6/30 10:59:39
Edited by Kamelito on 2019/6/30 11:03:45
   Report Go to top

Re: Syntax highlighting -- need these?
Home away from home
Joined:
2006/12/4 23:15
Posts: 2143
@mritter0

JSON is just javascript.

_________________
Blender For OS4.x : Blues : Walker Broad
   Report Go to top

Re: Syntax highlighting -- need these?
Just popping in
Joined:
2015/9/28 23:42
From Bettendorf, IA, USA
Posts: 215
@broadblues
That's what I thought.

@Kamelito
Thanks.

@all
I am looking for sites that tell me a lot of details about the language. Or if you have some code examples that editors like NotePad++ or Amiga's gvim has highlighting for so I can see what it should look like. (Functions, comments, numbers, etc.)


_________________
Workbench Explorer - A better way to browse drawers
   Report Go to top

Re: Syntax highlighting -- need these?
Quite a regular
Joined:
2007/7/14 20:30
From Lothric
Posts: 786
@mritter0

Lua keywords:

Quote:

and break do else elseif end
false for function goto if in
local nil not or repeat return
then true until while



Lua functions are listed at the bottom of this page: https://www.lua.org/manual/5.3/

   Report Go to top

Re: Syntax highlighting -- need these?
Just popping in
Joined:
2012/10/17 19:42
Posts: 88
6502.org

   Report Go to top

Re: Syntax highlighting -- need these?
Not too shy to talk
Joined:
2007/2/6 13:57
From Donostia (SPAIN)
Posts: 412
@mritter0
Take a look inside "langs.model.xml" file that comes with notepad++ it has a list of language syntax.

Any beta/alfa/screengrab so we can see struct preview?

Keep the good work!!!

   Report Go to top


« 1 (2) 3 »



[Advanced Search]


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project