Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-07-2003, 01:14 PM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
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.
__________________
Reply With Quote
  #2  
Old 12-07-2003, 04:31 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi is on a distinguished road
Send a message via AIM to G_yoshi
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
__________________
Reply With Quote
  #3  
Old 12-07-2003, 06:48 PM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
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
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
__________________
Reply With Quote
  #4  
Old 12-07-2003, 07:06 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
The autotab thing annoys me =| especially since most languages have a different formatting style
Reply With Quote
  #5  
Old 12-08-2003, 04:24 AM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
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
__________________
Reply With Quote
  #6  
Old 12-08-2003, 05:36 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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
Reply With Quote
  #7  
Old 12-08-2003, 05:39 AM
Thought Thought is offline
PipBoy Extraordinaire!
Thought's Avatar
Join Date: Nov 2001
Location: Long Beach, California.
Posts: 692
Thought is on a distinguished road
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.
__________________
Rick ([email protected])
#gscript on FreeNode (#gscript Guild, #gscript Information)
Graal User Statistics

I am now using my new account, Rick.
Reply With Quote
  #8  
Old 12-08-2003, 06:00 AM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
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 >.< .
__________________
new account: Trevor
Reply With Quote
  #9  
Old 12-08-2003, 06:23 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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 ;(
Reply With Quote
  #10  
Old 12-08-2003, 08:25 AM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
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 >.< .
__________________
new account: Trevor
Reply With Quote
  #11  
Old 12-09-2003, 05:22 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
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
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #12  
Old 12-09-2003, 07:07 AM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
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
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...
__________________
Reply With Quote
  #13  
Old 12-12-2003, 08:07 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi is on a distinguished road
Send a message via AIM to G_yoshi
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 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"
__________________
Reply With Quote
  #14  
Old 12-12-2003, 08:55 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
meh, it doesn't really matter anyhow, someone will add it in the scripted script editor for version 3
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #15  
Old 12-12-2003, 08:14 PM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally posted by Kristi


MOST COMPILERS do what i am asking
Haha.

Quote:
because it is LOGICAL!
No?
Reply With Quote
Reply


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 +2. The time now is 02:35 PM.


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