Author Topic: If Crimson is your ascii basher ...  (Read 9094 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?