Discussion:
code highlighting
(too old to reply)
faif
2012-06-06 10:55:16 UTC
Permalink
How can I add support for C code highlighting to Sam or Acme?
hiro
2012-06-06 11:06:33 UTC
Permalink
you can use { and tab to make your code visually more appealing. if
that's not enough use eclipse or read the code.
dexen deVries
2012-06-06 12:12:35 UTC
Permalink
Post by hiro
you can use { and tab to make your code visually more appealing. if
that's not enough use eclipse or read the code.
in Acme doubleclick on any of { [ ( < or > ) ] } braces/brackets/parens.

Acme will select (highlight) the area between this and the matching open/close
element.

- use left/right arrow keys to go to the other open/close element
- use Backspace to delete the selected content
- just type to replace the selected content
- use`Edit' to manipulate only the selected content

for example, to increase or decrease indentation of the selection only:
Edit s,^\t,\t\t,g
Edit s,^\t,,g

(where \t should be entered as Tab)



FWIW, i was missing syntax highlighting for about one month of using Acme.
since then i like it black.

using a custom font helps: http://mirtchovski.com/p9/freetype/index.php
--
dexen deVries

[[[↓][→]]]

Weightless and alone
you speed through the eerie nothingness of space
you circle 'round the Moon
and journey back
to face the punishing torment of re-entry

-- LUNA-C, ``Supaset8 (full release)'', #24m52s
dexen deVries
2012-06-06 12:24:14 UTC
Permalink
https://github.com/dexen/plan9port-custom/tree/dexen/font/dejavu-sans-subpix-
rgb

Dejavu Sans, sizes 10...17, with slight antialiasing.

size 16 looks good on 2048x1152 23'' displays.

-f PLAN9/font/dejavu-sans-subpix-rgb/dejavu-sans-subpix-rgb.16.font
--
dexen deVries

[[[↓][→]]]

Weightless and alone
you speed through the eerie nothingness of space
you circle 'round the Moon
and journey back
to face the punishing torment of re-entry

-- LUNA-C, ``Supaset8 (full release)'', #24m52s
Peter A. Cejchan
2012-06-06 12:47:32 UTC
Permalink
Post by dexen deVries
size 16 looks good on 2048x1152 23'' displays.
what graphics card do you use with these displays (natine)?
thanks
++pac
dexen deVries
2012-06-06 13:01:02 UTC
Permalink
Post by Peter A. Cejchan
Post by dexen deVries
size 16 looks good on 2048x1152 23'' displays.
what graphics card do you use with these displays (natine)?
thanks
gotta disappoint you: it's plan9port Acme, running on Linux + X11

from lspci:
01:00.0 VGA compatible controller: ATI Technologies Inc RV516 [Radeon
X1300/X1550 Series]
01:00.1 Display controller: ATI Technologies Inc RV516 [Radeon X1300 Pro]
(Secondary)

btw., the X.org driver has a funny bug: heavy glitches if virtual desktop size
is >= 4096. i had to configure the virtual desktop as `display under display'
of 2048x2304 rather than `display next to display' of 4096x1152. even thou
physically they are one under the other.
--
dexen deVries

[[[↓][→]]]

Weightless and alone
you speed through the eerie nothingness of space
you circle 'round the Moon
and journey back
to face the punishing torment of re-entry

-- LUNA-C, ``Supaset8 (full release)'', #24m52s
Rudolf Sykora
2012-06-06 12:23:03 UTC
Permalink
perhaps this discussion about acme might be of interest...
(this points at Russ' contribution in the otherwise longer thread)

http://9fans.net/archive/2008/08/134
Post by faif
How can I add support for C code highlighting to Sam or Acme?
Ethan Grammatikidis
2012-06-07 08:04:42 UTC
Permalink
On Wed, 6 Jun 2012 14:23:03 +0200
Post by Rudolf Sykora
perhaps this discussion about acme might be of interest...
(this points at Russ' contribution in the otherwise longer thread)
http://9fans.net/archive/2008/08/134
Nice post, I've saved it for my own reference. I'd only disagree with point 14; customizing acme's colors in the source is trivial, easier than rio, although it reminds me I should ed-script the color patches on my system. Also...
Post by Rudolf Sykora
19. Open new directories in the same window,
so that you don't get a desktop full of windows
as you drill down through a directory tree.
Easy external program, but why not just type
the whole path to the directory you want, perhaps
with help from ^F?
That's what I do. As well as ^F I appreciate deeply-nested system dirs
all having 3-character names, typing them becomes a rhythm. Even so,
with my fingers it's still not very convenient on a bad day. I keep
meaning to try Xplor.

Continue reading on narkive:
Loading...