Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   The Editor (https://forums.graalonline.com/forums/showthread.php?t=49535)

Kristi 12-07-2003 01:14 PM

The Editor
 
I'm not sure about you... but it really annoys me graal doesnt tab as far over as the last line was when i hit enter

like if i did
if (Blah) {
hi;
hi; <--- hit enter here

it should automatically put those 2 spaces, instead of me putting them on the next line.

This would be real convienent, things like microsoft visual languages, borland, codeworrier, ultraedit, etc automatically do this.

G_yoshi 12-07-2003 04:31 PM

Re: The Editor
 
Quote:

Originally posted by Kristi
I'm not sure about you... but it really annoys me graal doesnt tab as far over as the last line was when i hit enter

like if i did
if (Blah) {
hi;
hi; <--- hit enter here

it should automatically put those 2 spaces, instead of me putting them on the next line.

This would be real convienent, things like microsoft visual languages, borland, codeworrier, ultraedit, etc automatically do this.

psst! hey you! There's a little button you can click labled Styles. It does this for you automattically :p

Kristi 12-07-2003 06:48 PM

Re: Re: The Editor
 
Quote:

Originally posted by G_yoshi


psst! hey you! There's a little button you can click labled Styles. It does this for you automattically :p

Psst hey you thats not the same! go use any code editor! youll see what i mean!
when you hit ENTER it tabs it right away, i dont have to go hit a style button

Python523 12-07-2003 07:06 PM

The autotab thing annoys me =| especially since most languages have a different formatting style

Kristi 12-08-2003 04:24 AM

Quote:

Originally posted by Python523
The autotab thing annoys me =| especially since most languages have a different formatting style
It should be made an option you can turn off

Different formatting style? every language should indent nested code =p

Python523 12-08-2003 05:36 AM

Quote:

Originally posted by Kristi


It should be made an option you can turn off

Different formatting style? every language should indent nested code =p

examples of differences:
if (event)
{

and I believe C++ uses 4 spaces, gscript uses 2

Thought 12-08-2003 05:39 AM

Quote:

Originally posted by Python523


examples of differences:
if (event)
{

and I believe C++ uses 4 spaces, gscript uses 2

...? C++ knows nothing about indentations.

MSVC IDE indents based on whatever you're working with, it will watch how many spaces / tabs you're doing any work with that.

tlf288 12-08-2003 06:00 AM

Quote:

Originally posted by Thought

...? C++ knows nothing about indentations.

MSVC IDE indents based on whatever you're working with, it will watch how many spaces / tabs you're doing any work with that.

yea, most languages today, such as c++ and even gscript, ignore whitespaces. that means it doesnt really matter to the compiler itself what the coding style is.

you should know this jagen >.< .

Python523 12-08-2003 06:23 AM

Quote:

Originally posted by Thought

...? C++ knows nothing about indentations.

MSVC IDE indents based on whatever you're working with, it will watch how many spaces / tabs you're doing any work with that.

I wasn't saying it compiled based on them, I was just saying that's what the 'standard' is considered, don't put words into my mouth ;(

tlf288 12-08-2003 08:25 AM

Quote:

Originally posted by Python523


I wasn't saying it compiled based on them, I was just saying that's what the 'standard' is considered, don't put words into my mouth ;(

i don't even think there is a standard, though. i am not sure what you would call it, maybe a "common way of thinking"?

it isn't like it matters anyways. stupid topic :-) .

edit:

i just saw where you put 's around standard, sorry >.< .

Dach 12-09-2003 05:22 AM

that'll throw off my habit of hitting "enter space space"...

but anyhow, it's nothing big so it wouldn't really hurt anything to add aslong as you can turn it off so those of us who format our scripts to where the rest have a hard time reading can go on with their business :whatever:

Kristi 12-09-2003 07:07 AM

Quote:

Originally posted by Dach
that'll throw off my habit of hitting "enter space space"...

but anyhow, it's nothing big so it wouldn't really hurt anything to add aslong as you can turn it off so those of us who format our scripts to where the rest have a hard time reading can go on with their business :whatever:

This makes no sense, what are you trying to say?

MOST COMPILERS do what i am asking because it is LOGICAL!

its not a constant space, it puts it over EXACTLY the same amount of spaces/tabs the last line was over, thats how it works. Graal should do that, so wether you use 3 spaces, 2, 12, or a million, it will make the next line the same way...

G_yoshi 12-12-2003 08:07 AM

Quote:

Originally posted by Kristi


This makes no sense, what are you trying to say?

MOST COMPILERS do what i am asking because it is LOGICAL!

its not a constant space, it puts it over EXACTLY the same amount of spaces/tabs the last line was over, thats how it works. Graal should do that, so wether you use 3 spaces, 2, 12, or a million, it will make the next line the same way...

I don't think its a matter of being logical as its more of readablitiy :p Its easier to read script/code that's indented or whatever than if its all left justified. The compiler doesn't care whether or not its indented as long as what you've put in works.

Really, though, I don't like things that auto-indent for me. Especially something like MS Word ::shudders:: it ruins what I'm trying to do with its "AI" :p

Dach 12-12-2003 08:55 AM

meh, it doesn't really matter anyhow, someone will add it in the scripted script editor for version 3

Lance 12-12-2003 08:14 PM

Quote:

Originally posted by Kristi


MOST COMPILERS do what i am asking

Haha.

Quote:

because it is LOGICAL!

No?

Loriel 12-12-2003 08:24 PM

... ... I would really despise a compiler inserting spaces into code.


All times are GMT +2. The time now is 10:46 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.