TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: MP on April 16, 2005, 02:50:16 PM

Title: If Crimson is your ascii basher ...
Post by: MP on April 16, 2005, 02:50:16 PM
... I've created a syntax file, see this (http://www.theswamp.org/lilly_pond/mp/files/vlispkey.zip?nossi=1).

Found out there's also need for a companion .spc file, see this (http://www.theswamp.org/lilly_pond/mp/files/vlispspc.zip?nossi=1).

Doesn't work, anything missing? Please let me know and I'll try to remedy.

What's Crimson (http://www.crimsoneditor.com)? An ascii basher I've never used that some folks think is real nice (and very free).

:)

Edit: Add link to .spc file as noted above.
Title: If Crimson is your ascii basher ...
Post by: nivuahc on April 16, 2005, 03:25:49 PM
I need to create a syntax file for Notepad2 (http://www.flos-freeware.ch/notepad2.html) one of these days.

I'll have to check out Crimson for sure.
Title: If Crimson is your ascii basher ...
Post by: MP on April 16, 2005, 03:29:48 PM
Quote from: nivuahc
I need to create a syntax file for Notepad2 (http://www.flos-freeware.ch/notepad2.html) one of these days.

I'll have to check out Crimson for sure.

Unless you're going to recompile Notepad2 no can  do (the author does supply the c++ source code)  --

Quote
FAQ: Syntax schemes: Could you please explain how to add or modify syntax schemes?

This requires modification of the Notepad2 source code.

The Scintilla documentation has an overview of syntax highlighting, and how to write your own lexer, in case the language you'd like to add is not supported by Scintilla.

The structures relevant to syntax highlighting can be found in Styles.c of the Notepad2 source code. Add your own structures to the global pLexArray, then adjust NUMLEXERS to the total number of syntax schemes. The style definitions can be found in SciLexer.h of the Scintilla source code.

Include the Lex*.cxx files from Scintilla required for your languages in your project and follow the instructions in Readme.txt to rebuild Notepad2. I recommend using Visual Studio .NET 7 or above.
Title: If Crimson is your ascii basher ...
Post by: CADaver on April 16, 2005, 03:33:03 PM
DOOD, that's sweet.  So far works like a champ, needs no tweakin' this end as yet.  When I can really bang on it I'll let you know more.  Thanks a load, keep this up and you'll be a two-timer for the "Cypress Award".
Title: If Crimson is your ascii basher ...
Post by: MP on April 16, 2005, 03:34:50 PM
My pleasure, glad (surprised) to hear it works.

YEHA!

:)
Title: If Crimson is your ascii basher ...
Post by: CADaver on April 16, 2005, 03:40:16 PM
Quote from: MP
My pleasure, glad (surprised) to hear it works.

I'm still pretty limited at how hard I can push any kind of programming.  Typing is limited to one finger each hand, and I have to watch it all the way to the key.  If I look away there's no telling where it will land.  It may be time to work on my word-rec file for Dragon.
Title: If Crimson is your ascii basher ...
Post by: MP on April 16, 2005, 03:44:53 PM
Quote from: CADaver
Quote from: MP
My pleasure, glad (surprised) to hear it works.

I'm still pretty limited at how hard I can push any kind of programming.  Typing is limited to one finger each hand, and I have to watch it all the way to the key.  If I look away there's no telling where it will land.  It may be time to work on my word-rec file for Dragon.

Word-rec??? Word recognition? Is there something I can do -- I type with 3 fingers per hand, so I may be able to do it a little faster. What's dragon? Gotta link?
Title: If Crimson is your ascii basher ...
Post by: MP on April 16, 2005, 03:47:27 PM
Is this (http://www.dragontalk.com/) it?
Title: If Crimson is your ascii basher ...
Post by: nivuahc on April 16, 2005, 03:49:28 PM
Quote from: MP
Unless you're going to recompile Notepad2 no can  do (the author does supply the c++ source code)  --


Yeah, that's the only reason I haven't done it already. It seems like as good a reason as any to try something else. Although, if you've never tried Notepad2, it's worth a look. It's leaps and bounds above plain old Notepad, that's for sure.
Title: If Crimson is your ascii basher ...
Post by: MP on April 16, 2005, 03:51:22 PM
<cough> May I introduce you to Textpad (http://www.textpad.com)?

:)
Title: If Crimson is your ascii basher ...
Post by: TR on April 16, 2005, 04:22:30 PM
http://www.vim.org/
Title: If Crimson is your ascii basher ...
Post by: JohnK on April 16, 2005, 05:17:05 PM
*cough* Use Cream (http://cream.sourceforge.net/) And you can use the Syntax file and help files Mark created.

Vim for life baby!   :P
Title: If Crimson is your ascii basher ...
Post by: MP on April 17, 2005, 01:47:28 AM
Hey Randy, I added a .spc file (a required companion file), see original post (http://www.theswamp.org/phpBB2/viewtopic.php?p=57707#57707).
Title: If Crimson is your ascii basher ...
Post by: CADaver on April 17, 2005, 10:36:27 AM
Quote from: MP
Is this (http://www.dragontalk.com/) it?
Yeah that's it.  Some of you may remember me talking about my brother's sister-in-law.  7 or 8 years ago, a car wreck left her paralyzed from the neck down, with some gross-motor function in her arms and shoulders.  

My brother and I set her up with AutoCAD and DRAGON ver 1 and she became proficient enough to get a job with the sata of Colorado.  At the time the Dragon guys worked real close with my brother to improve the software and get her going, so I'm kinda partial to those guys.  

I have a working demo version of V7, but haven't spent the time to build up the word file.  You have to build it's recognition file to match the way you speak so you have to talk to it a lot.  V8 is supposed to be very good.  My surgeon uses it to record comments during surgery and has helped setup some of his less fortunate cases to use it.
Title: If Crimson is your ascii basher ...
Post by: CADaver on April 17, 2005, 10:39:06 AM
Quote from: MP
Hey Randy, I added a .spc file (a required companion file), see original post (http://www.theswamp.org/phpBB2/viewtopic.php?p=57707#57707).
Cool at first I used the autolisp.spc that comes with Crimson.  I gotta see this work, gonna be sweet.

Am I the only Crimson user here?
Title: If Crimson is your ascii basher ...
Post by: TR on April 17, 2005, 10:43:33 AM
Those animated gif's on that webpage crack me up.
Title: If Crimson is your ascii basher ...
Post by: MP on April 17, 2005, 11:09:02 AM
Quote from: CADaver
Quote from: MP
Hey Randy, I added a .spc file (a required companion file), see original post (http://www.theswamp.org/phpBB2/viewtopic.php?p=57707#57707).
Cool at first I used the autolisp.spc that comes with Crimson.  I gotta see this work, gonna be sweet.

Am I the only Crimson user here?

I downloaded it last night just to make sure the syntax file I made would work; that's how I found out about the companion file necessity. It's a capable editor for the cost but I won't be parting company with Textpad any time soon. I've been using it for a decade now; we're like old friends - we know how we work (I'm even in the credits for beeing a beta tester, woot). Textpad's only $27 to register (the non registered version is 100% functional), one of the best deals on the net considering what you get.
Title: If Crimson is your ascii basher ...
Post by: Mark on April 17, 2005, 11:19:34 AM
Quote from: CADaver
Am I the only Crimson user here?

I use it at work for some things, not programming though.
Title: If Crimson is your ascii basher ...
Post by: CADaver on April 17, 2005, 01:29:18 PM
Quote from: MP
...but I won't be parting company with Textpad any time soon. I've been using it for a decade now; we're like old friends - we know how we work (I'm even in the credits for beeing a beta tester, woot). Textpad's only $27 to register (the non registered version is 100% functional), one of the best deals on the net considering what you get.
Maybe I need to give it a shot.
Title: If Crimson is your ascii basher ...
Post by: whdjr on April 17, 2005, 05:42:12 PM
Quote from: CADaver
Am I the only Crimson user here?


I just donwloaded it.  I willl check it out and report back whether I like it or not. :D
Title: If Crimson is your ascii basher ...
Post by: MP on April 17, 2005, 06:35:07 PM
For those trying out crimson ...

Config hint:

(http://www.theswamp.org/screens/mp/crimson1.png)

Document doesn't appear to highlight correctly?

(http://www.theswamp.org/screens/mp/crimson2.png)

We've now exhausted my expertise with this editor.

:)
Title: If Crimson is your ascii basher ...
Post by: nivuahc on April 18, 2005, 12:02:05 AM
Just downloaded it and tried it.

Like it.

Noticed that Michael already sent his Syntax files to the Crimson crew... schweeeeeeet. 8)
Title: If Crimson is your ascii basher ...
Post by: MP on April 18, 2005, 12:07:30 AM
:)
Title: If Crimson is your ascii basher ...
Post by: MP on April 18, 2005, 01:05:36 AM
Crimson keyword file updated. (http://www.theswamp.org/lilly_pond/mp/files/vlispkey.zip?nossi=1)
Title: If Crimson is your ascii basher ...
Post by: CADaver on April 18, 2005, 09:15:46 AM
Quote from: MP
Crimson keyword file updated. (http://www.theswamp.org/lilly_pond/mp/files/vlispkey.zip?nossi=1)
Thanks again Michael.  Do you have a real job??  How do you have time for all this and earning milk money too?? :shock:  Anyway, this is just wayyyyyy cool, thanks again.
Title: If Crimson is your ascii basher ...
Post by: MP on April 18, 2005, 09:32:46 AM
Yep, they don't make me work Sunday's tho.

BTW -- you may wish to edit this file:

c:\Program files\crimson editor\link\extension.lsp

So it reads:

LANGSPEC:VLISP.SPC
KEYWORDS:VLISP.KEY


:)
Title: If Crimson is your ascii basher ...
Post by: CADaver on April 18, 2005, 09:40:52 AM
Quote from: MP
Yep, they don't make me work Sunday's tho.

BTW -- you may wish to edit this file:

c:\Program files\crimson editor\link\extension.lsp

So it reads:

LANGSPEC:VLISP.SPC
KEYWORDS:VLISP.KEY


:)
Thanks, done, what does that do for me?  I really haven't banged out anything with it yet, just checked a few I've already written.
Title: If Crimson is your ascii basher ...
Post by: MP on April 18, 2005, 10:30:48 AM
That instructs crismon to use said syntax fils for files sporting the extension '.lsp' automatically (I couldn't figure out why it wasn't doing it automatically when I had provided the syntax files, then I read the fine manual; la duh).

You'll have to copy extension.lsp to extension.mnl if you edit those files too.
Title: If Crimson is your ascii basher ...
Post by: CADaver on April 18, 2005, 10:40:18 AM
Quote from: MP
You'll have to copy extension.lsp to extension.mnl if you edit those files too.
oh good thought, thanks again.
Title: If Crimson is your ascii basher ...
Post by: MP on April 18, 2005, 11:12:40 PM
Ya know, this crimson is a capable little sucker ...

(http://www.theswamp.org/screens/mp/crimson3.png)

:)
Title: If Crimson is your ascii basher ...
Post by: CADaver on April 18, 2005, 11:16:03 PM
Quote from: MP
Ya know, this crimson is a capable little sucker ...
YEp, somebody here lit me up on it over a year ago I think.  Been using it ever since for nearly everything.
Title: If Crimson is your ascii basher ...
Post by: whdjr on April 19, 2005, 09:25:48 AM
Thanks for all your help MP.  Crimson is really cool.
Title: If Crimson is your ascii basher ...
Post by: MP on April 19, 2005, 10:18:25 AM
My pleasure Will; cool sig btw.
Title: If Crimson is your ascii basher ...
Post by: whdjr on April 19, 2005, 10:58:13 AM
Quote from: MP
My pleasure Will; cool sig btw.


Thanks