Ticket #125 (closed enhancement: fixed)

Opened 7 years ago

Last modified 13 months ago

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

comment:1 Changed 6 years ago by alexander

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

comment:2 Changed 6 years ago by rme

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

comment:3 Changed 6 years ago by jaj

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

This has been implemented, ticket closed.

comment:4 Changed 6 years ago by gz

  • Status changed from closed to reopened
  • Resolution fixed deleted

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 5 years ago by gz

  • Owner gb deleted
  • Status changed from reopened to new

comment:6 Changed 13 months ago by gz

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

(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.