Thread View: gnu.epoch.misc
2 messages
2 total messages
Started by Jim Thompson
Wed, 03 Jun 1992 18:49
Using styles for improved legibility
Author: Jim Thompson
Date: Wed, 03 Jun 1992 18:49
Date: Wed, 03 Jun 1992 18:49
12 lines
1197 bytes
1197 bytes
Does anyone here know of an epoch package that applies styles selectively within a buffer, particularly to enhance code? For example, scan a C++ buffer and apply an italic style to comments and a bold style to the keywords. The comments should be relatively easy--you could use the buffer's comment syntax to find them. Jim -- _ Jim Thompson | Western Geophysical _| ~- thompson@wg2.waii.com | Exploration Products \, _} jimt@sugar.neosoft.com | 3600 Briarpark \( (713) 964-6213 | Houston, TX 77042
Using styles for improved legibility
Author: Marc Andreessen
Date: Wed, 03 Jun 1992 11:47
Date: Wed, 03 Jun 1992 11:47
45 lines
2423 bytes
2423 bytes
Yup; a relevant section of the Epoch FAQ follows...
G-1: How do I highlight regions of text in a buffer with different styles?
While the current Epoch distribution contain plenty of support for
zones and styles, the enabling mechanisms that make syntax-directed
highlighting possible, no intrinsic support for such highlighting is
provided. This situation may change in subsequent releases of Epoch.
Three packages that provide varying degrees of support for
syntax-directed highlighting are:
tek-epoch-stuff-1.1.tar.Z (available from archive.cis.ohio-state.edu
or ftp.ncsa.uiuc.edu, see below), which supports comment highlighting
in source code as well as support for the Info documentation browser,
various mail and news packages, and manual pages.
marc-hilite.tar.Z (available from ftp.ncsa.uiuc.edu, see below), which
is an extension to tek-epoch-stuff made by Yours Truly to allow
per-mode regexp-based highlighting. Thus, you can have all
#define's/#endif's in red, setq's and defun's in green,
int/float/double's in yellow, '-->'s in purple, and so on.
(A very preliminary version of a reimplementation of marc-hilite,
called Lightbrite, can be found here also; it includes partial
documentation. Hopefully Lightbrite proper will be completed
sometime this summer.)
hilit.el.Z (most recent version was posted to gnu.emacs.souces and is
available from ftp.ncsa.uiuc.edu, see below), which provides
source-code comment and regexp highlighting.
...
ftp.ncsa.uiuc.edu (141.142.20.50)
/outgoing/marca/epoch
Cheers,
Marc
--
Marc Andreessen
Epoch Development Team
University of Illinois at Urbana-Champaign
marca@ncsa.uiuc.edu
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads