mIRC Home    About    Download    Register    News    Help

Print Thread
#16854 25/03/03 03:31 PM
Joined: Dec 2002
Posts: 20
S
Spola Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Dec 2002
Posts: 20
I don't really like the way mIRC rapes my code layout when i load it. It adds multiple spaces to places where i don't want them, and indents all code in brackets.

I would like mIRC to not do this. Sure, code indetation is handy, but better make it indent using tabs then (at least their size can be adjusted).

Or: when file chanes are noticed, it could auto-reload the file (option to do it), then i could edit in a decent editor.


you guys are so not L334
#16855 25/03/03 08:12 PM
Joined: Dec 2002
Posts: 395
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2002
Posts: 395
I agree, code indetation can be annoying sometimes, i'd like to see an option to turn it off..


Quote:

Or: when file chanes are noticed, it could auto-reload the file (option to do it), then i could edit in a decent editor.


Threre's an option in 'options' editor popup - "monitor file changes".

#16856 25/03/03 09:41 PM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
ok true it can get annoying ... but think if the editor didnt indent it .. and u forgot a bracket ....... with no indentation u might have to go thru ur entire mrc file or ini to find it ...... that lil indenting it does has caught me on forgetting to toss in an ending bracket more times than i can count and made it a life saver wondering sh!t what did i miss when it didnt work ...


D3m0nnet.com
#16857 26/03/03 08:59 PM
Joined: Dec 2002
Posts: 20
S
Spola Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Dec 2002
Posts: 20
i want a switch.

Some of us (especially those who code in multiple languages) have an editor or something that they prefer to use. mIRC doesn't allow you to do that in a decent way.

What i want is an option to have Monitor File Changes auto reload the file (WITHOUT breaking the code layout).

That way we could edit our code in our favorite (UltraEdit rules all) text editor. I'm not sure about the tabs tho, but it shouldn't be hard for mIRC to ignore them (if they have a problem with them at all).


you guys are so not L334
#16858 26/03/03 11:56 PM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
Using a third party editor to script in mIRC seems pointless to me. Why use U-Edit for this when you then have to either reload the file or restart mIRC? The current mIRC script editor even has a limited form of error checking, namely missing braces and when you close it the new content in the file is already loaded into mIRC. What more do we need?

I could be wrong here but I am sure that most, if not all, language structures have some sort of correct (or commonly done) indentation method. It does in most cases make scripts easier to read. Nothing is worse than a script file full of pipes to try and avoid it. It makes the whole thing unreadable.

L334 is spelt L337 too. grin

#16859 27/03/03 01:30 AM
Joined: Feb 2003
Posts: 29
S
Ameglian cow
Offline
Ameglian cow
S
Joined: Feb 2003
Posts: 29
I love the auto indentation in mIRC. Miss it in Visual Studio C++.

But maybe be able to set up how the indention should work would be a nice addition to mIRC (in addition to syntax highlighting).

#16860 28/03/03 05:56 AM
Joined: Dec 2002
Posts: 17
N
Pikka bird
Offline
Pikka bird
N
Joined: Dec 2002
Posts: 17
Code indentation is a great tool. It helps you keep your brackets balanced.

And let's face it, code like:

Code:
alias blah {
if (!$istok(%nomsg,$1,255)) {
msg $1 $2-
echo -a You said $2- to $1
}
}


doesn't look good. I'd rather have

Code:
alias blah {
  if (!$istok(%nomsg,$1,255)) {
    msg $1 $2-
    echo -a You said $2- to $1-
  }
}


Much cleaner than the first example.


#16861 28/03/03 03:53 PM
Joined: Dec 2002
Posts: 395
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2002
Posts: 395
Ok, it's a great thing, but i'd like to use my own indentation style...

#16862 28/03/03 05:47 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
You can, just don't use the mIRC editor to write/save your scripts.

Having indentation in the script editor is very useful since most scripters either have little or no coding experience - enforcing some simple formatting rules makes scripts a lot easier for everyone to read. Being able to choose your 'indentation style' would pretty much negate that.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#16863 09/04/03 11:00 AM
Joined: Dec 2002
Posts: 39
V
Ameglian cow
Offline
Ameglian cow
V
Joined: Dec 2002
Posts: 39
Hmm, as long as you don't open the code in the mIRC editor it won't break your indendation style... but surely you use an editor decent enough that it allows you to have different indendation styles for different languages (www.textpad.com)? If all you want is a better automatic reload a small addon, like the one included in my TextPad mIRC Addons (come.to/vague), which does reloading transparently (i.e. without bothering you every time), will work decently. It's completly editor agnostic, in no way specifically tied to TextPad (Which the other stuff included with that file, macros and syntax highlighting files, are).

Coding with a decent editor, with decent syntax highlighting and all the editor features of such a tool (projects, advanced search'n'replace, ...) is, to a lot of people, preferable to using mIRC's very limited default editor. Your mileage might vary, as they say =)

#16864 15/04/03 06:18 AM
Joined: Jan 2003
Posts: 98
T
Babel fish
Offline
Babel fish
T
Joined: Jan 2003
Posts: 98
hey u might be on to something there
variable coloring and stuff is a good idea!


Link Copied to Clipboard