Author Topic: If Crimson is your ascii basher ...  (Read 9093 times)

0 Members and 1 Guest are viewing this topic.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
If Crimson is your ascii basher ...
« on: April 16, 2005, 02:50:16 PM »
... I've created a syntax file, see this.

Found out there's also need for a companion .spc file, see this.

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

What's Crimson? 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.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

nivuahc

  • Guest
If Crimson is your ascii basher ...
« Reply #1 on: April 16, 2005, 03:25:49 PM »
I need to create a syntax file for Notepad2 one of these days.

I'll have to check out Crimson for sure.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
If Crimson is your ascii basher ...
« Reply #2 on: April 16, 2005, 03:29:48 PM »
Quote from: nivuahc
I need to create a syntax file for Notepad2 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.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

CADaver

  • Guest
If Crimson is your ascii basher ...
« Reply #3 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".

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
If Crimson is your ascii basher ...
« Reply #4 on: April 16, 2005, 03:34:50 PM »
My pleasure, glad (surprised) to hear it works.

YEHA!

:)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

CADaver

  • Guest
If Crimson is your ascii basher ...
« Reply #5 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.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
If Crimson is your ascii basher ...
« Reply #6 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?
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
If Crimson is your ascii basher ...
« Reply #7 on: April 16, 2005, 03:47:27 PM »
Is this it?
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

nivuahc

  • Guest
If Crimson is your ascii basher ...
« Reply #8 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.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
If Crimson is your ascii basher ...
« Reply #9 on: April 16, 2005, 03:51:22 PM »
<cough> May I introduce you to Textpad?

:)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

TR

  • Guest
If Crimson is your ascii basher ...
« Reply #10 on: April 16, 2005, 04:22:30 PM »

JohnK

  • Administrator
  • Seagull
  • Posts: 10648
If Crimson is your ascii basher ...
« Reply #11 on: April 16, 2005, 05:17:05 PM »
*cough* Use Cream And you can use the Syntax file and help files Mark created.

Vim for life baby!   :P
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
If Crimson is your ascii basher ...
« Reply #12 on: April 17, 2005, 01:47:28 AM »
Hey Randy, I added a .spc file (a required companion file), see original post.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

CADaver

  • Guest
If Crimson is your ascii basher ...
« Reply #13 on: April 17, 2005, 10:36:27 AM »
Quote from: MP
Is this 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.

CADaver

  • Guest
If Crimson is your ascii basher ...
« Reply #14 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.
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?

TR

  • Guest
If Crimson is your ascii basher ...
« Reply #15 on: April 17, 2005, 10:43:33 AM »
Those animated gif's on that webpage crack me up.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
If Crimson is your ascii basher ...
« Reply #16 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.
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.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
If Crimson is your ascii basher ...
« Reply #17 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.
TheSwamp.org  (serving the CAD community since 2003)

CADaver

  • Guest
If Crimson is your ascii basher ...
« Reply #18 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.

whdjr

  • Guest
If Crimson is your ascii basher ...
« Reply #19 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

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
If Crimson is your ascii basher ...
« Reply #20 on: April 17, 2005, 06:35:07 PM »
For those trying out crimson ...

Config hint:



Document doesn't appear to highlight correctly?



We've now exhausted my expertise with this editor.

:)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

nivuahc

  • Guest
If Crimson is your ascii basher ...
« Reply #21 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)

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
If Crimson is your ascii basher ...
« Reply #22 on: April 18, 2005, 12:07:30 AM »
:)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
If Crimson is your ascii basher ...
« Reply #23 on: April 18, 2005, 01:05:36 AM »
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

CADaver

  • Guest
If Crimson is your ascii basher ...
« Reply #24 on: April 18, 2005, 09:15:46 AM »
Quote from: MP
Crimson keyword file updated.
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.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
If Crimson is your ascii basher ...
« Reply #25 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


:)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

CADaver

  • Guest
If Crimson is your ascii basher ...
« Reply #26 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.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
If Crimson is your ascii basher ...
« Reply #27 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.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

CADaver

  • Guest
If Crimson is your ascii basher ...
« Reply #28 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.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
If Crimson is your ascii basher ...
« Reply #29 on: April 18, 2005, 11:12:40 PM »
Ya know, this crimson is a capable little sucker ...



:)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

CADaver

  • Guest
If Crimson is your ascii basher ...
« Reply #30 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.

whdjr

  • Guest
If Crimson is your ascii basher ...
« Reply #31 on: April 19, 2005, 09:25:48 AM »
Thanks for all your help MP.  Crimson is really cool.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
If Crimson is your ascii basher ...
« Reply #32 on: April 19, 2005, 10:18:25 AM »
My pleasure Will; cool sig btw.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

whdjr

  • Guest
If Crimson is your ascii basher ...
« Reply #33 on: April 19, 2005, 10:58:13 AM »
Quote from: MP
My pleasure Will; cool sig btw.


Thanks