9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] code highlighting
@ 2012-06-06 10:55 faif
  2012-06-06 11:06 ` hiro
  2012-06-06 12:23 ` [9fans] code highlighting Rudolf Sykora
  0 siblings, 2 replies; 8+ messages in thread
From: faif @ 2012-06-06 10:55 UTC (permalink / raw)
  To: 9fans

How can I add support for C code highlighting to Sam or Acme?



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] code highlighting
  2012-06-06 10:55 [9fans] code highlighting faif
@ 2012-06-06 11:06 ` hiro
  2012-06-06 12:12   ` dexen deVries
  2012-06-06 12:24   ` [9fans] Custom font (was: code highlighting) dexen deVries
  2012-06-06 12:23 ` [9fans] code highlighting Rudolf Sykora
  1 sibling, 2 replies; 8+ messages in thread
From: hiro @ 2012-06-06 11:06 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

you can use { and tab to make your code visually more appealing. if
that's not enough use eclipse or read the code.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] code highlighting
  2012-06-06 11:06 ` hiro
@ 2012-06-06 12:12   ` dexen deVries
  2012-06-06 12:24   ` [9fans] Custom font (was: code highlighting) dexen deVries
  1 sibling, 0 replies; 8+ messages in thread
From: dexen deVries @ 2012-06-06 12:12 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Wednesday 06 of June 2012 13:06:33 hiro wrote:
> 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




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] code highlighting
  2012-06-06 10:55 [9fans] code highlighting faif
  2012-06-06 11:06 ` hiro
@ 2012-06-06 12:23 ` Rudolf Sykora
  2012-06-07  8:04   ` Ethan Grammatikidis
  1 sibling, 1 reply; 8+ messages in thread
From: Rudolf Sykora @ 2012-06-06 12:23 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

On 6 June 2012 12:55, faif <faifgnu@gmail.com> wrote:
> How can I add support for C code highlighting to Sam or Acme?



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [9fans] Custom font (was: code highlighting)
  2012-06-06 11:06 ` hiro
  2012-06-06 12:12   ` dexen deVries
@ 2012-06-06 12:24   ` dexen deVries
  2012-06-06 12:47     ` Peter A. Cejchan
  1 sibling, 1 reply; 8+ messages in thread
From: dexen deVries @ 2012-06-06 12:24 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] Custom font (was: code highlighting)
  2012-06-06 12:24   ` [9fans] Custom font (was: code highlighting) dexen deVries
@ 2012-06-06 12:47     ` Peter A. Cejchan
  2012-06-06 13:01       ` dexen deVries
  0 siblings, 1 reply; 8+ messages in thread
From: Peter A. Cejchan @ 2012-06-06 12:47 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 128 bytes --]

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

what graphics card do you use with these displays (natine)?
thanks
++pac

[-- Attachment #2: Type: text/html, Size: 186 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] Custom font (was: code highlighting)
  2012-06-06 12:47     ` Peter A. Cejchan
@ 2012-06-06 13:01       ` dexen deVries
  0 siblings, 0 replies; 8+ messages in thread
From: dexen deVries @ 2012-06-06 13:01 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Wednesday 06 of June 2012 14:47:32 Peter A. Cejchan wrote:
> > 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




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] code highlighting
  2012-06-06 12:23 ` [9fans] code highlighting Rudolf Sykora
@ 2012-06-07  8:04   ` Ethan Grammatikidis
  0 siblings, 0 replies; 8+ messages in thread
From: Ethan Grammatikidis @ 2012-06-07  8:04 UTC (permalink / raw)
  To: 9fans

On Wed, 6 Jun 2012 14:23:03 +0200
Rudolf Sykora <rudolf.sykora@gmail.com> wrote:

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

> > Also, regarding Acme's use as a file browser:
> >
> > 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.



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-06-07  8:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-06 10:55 [9fans] code highlighting faif
2012-06-06 11:06 ` hiro
2012-06-06 12:12   ` dexen deVries
2012-06-06 12:24   ` [9fans] Custom font (was: code highlighting) dexen deVries
2012-06-06 12:47     ` Peter A. Cejchan
2012-06-06 13:01       ` dexen deVries
2012-06-06 12:23 ` [9fans] code highlighting Rudolf Sykora
2012-06-07  8:04   ` Ethan Grammatikidis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).