Opened 12 years ago

Closed 6 years ago

#125 closed enhancement (fixed)

Add syntax-coloring

Reported by: mikel Owned by:
Priority: normal Milestone: Cocoa IDE v1
Component: IDE Version:
Keywords: funded Cc:

Description

Would be nice to have syntax-coloring for those of us who have learned to like it.

Change History (6)

comment:1 Changed 11 years ago by alexander

To get improved curb appeal for potential NEW users of CCL this is important.

comment:2 Changed 10 years ago by rme

  • Keywords funded added
  • Milestone set to Cocoa IDE Improvements
  • Priority changed from minor to normal

comment:3 Changed 10 years ago by jaj

  • Milestone changed from Cocoa IDE Improvements to Cocoa IDE v1
  • Resolution set to fixed
  • Status changed from new to closed

This has been implemented, ticket closed.

comment:4 Changed 10 years ago by gz

  • Resolution fixed deleted
  • Status changed from closed to reopened

Reopened. We have comment and string coloring only. We're missing keyword, function name, variable name, and type name coloring. Also useful would be documented ways to customize the colors (assuming ticket #87 is addressed).

comment:5 Changed 10 years ago by gz

  • Owner gb deleted
  • Status changed from reopened to new

comment:6 Changed 6 years ago by gz

  • Resolution set to fixed
  • Status changed from new to closed

(In [15906]) Introduced a new convention: symbols exported from the HEMLOCK package are there for the IDE to use. Added a new hemlock file, display.lisp, which defines a set of such functions, mostly code that used to be in the IDE but had no actual Cocoa dependencies - we now have hemlock:update-current-package, hemlock:paren-matching-bounds, hemlock:selection-for-click, hemlock:move-point-for-click, and hemlock:compute-syntax-coloring.

New fn hemlock-ext:lookup-color maps a color description to a Cocoa color object. The current implementation is rudimentary, I'm hoping someone can make it more real.

Extended hemlock:compute-syntax-coloring to add coloring for symbols. This fixes ticket:125. To change how symbol colors get decided, you're most likely to want to modify some of:

hemlock::compute-symbol-category hemlock::defining-symbol-p hemlock::*lisp-code-colors*

Note: See TracTickets for help on using tickets.