|
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
|
|
|
Larkin Wizard
Joined: 25 Mar 2003 Posts: 1113 Location: USA
|
Posted: Fri Dec 22, 2006 5:26 pm |
There is a syntax check function and a dynamic syntax highlighter option, but there is no auto-indenter.
|
|
|
|
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
Posted: Fri Dec 22, 2006 6:28 pm |
I'm curious as to how other people are handling this. Converting the actual incompatible code is easy compared to daunting task of untangling the mass of conjoined code it is in CMud.
All my code in CMud is just one big long line, separating it out into something readable to taking way way too much time. I'm even considering whether I can manually copy and paste it over from the formatted ZMud to make it easier.
Anyone have a better solution? |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Fri Dec 22, 2006 6:37 pm |
The problem is that the code always was one long line - zMUD just made it look nicer. In CMUD a new line in the editor actually does something. You'd most likely need to change at least some of your pretty-printed code to have it work as you'd expect. I had some issues with that - the scripts that I'm not rewriting entirely (which is most of them) I'm spacing manually to avoid it.
|
|
|
|
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
Posted: Fri Dec 22, 2006 6:50 pm |
So the best known method is just to go though manually and make it readable?
I'm just dumbfounded by how much time that is going to take. |
|
|
|
Ceres Wanderer
Joined: 25 May 2006 Posts: 88
|
Posted: Sat Dec 23, 2006 12:10 am |
The easiest way I have found is to have zMud an CMUD open at the same time and simply paste the indented scripts into CMUD whilst creating aliases, variables and triggers manually. Not quick but at least that way you can modify the zscript to cscript at the same time whilst retaining some form of readability.
|
|
|
|
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
Posted: Sat Dec 23, 2006 12:15 am |
Cool, I was thinking that might work, I'll go that route.
|
|
|
|
|
|