From: Steven Johnson <sjohnson@sakuraindustries.com>
To: "Th.R.Klein" <Th.R.Klein@web.de>
Cc: insight@sources.redhat.com
Subject: Re: [RFC] syntax highlighting
Date: Wed, 03 Aug 2005 21:49:00 -0000 [thread overview]
Message-ID: <42F271D3.10007@sakuraindustries.com> (raw)
In-Reply-To: <42F134B1.8080805@web.de>
This is a good idea. Im not sure of anyone else doing this, so the work
is very appreciated.
My comments are as follows:
1. What variant of Assembler are you syntax highlighting here? There
are many varients, using different comment characters, asm directives,
opcode directives, etc.
2. It would be useful, if your comment block for the 2 "hard coded"
highlighters (the asm one especially) defined the types of things you
are scanning for and highlighting. (what are the keywords, comments,
etc.) it would make understanding the code easier.
3. It would be useful if the extensions that used one or other of the
hard-coded highlighters could be set by the user in a configuration
option. Or maybe even dynamically from the test widget (im thinking a
little drop down that lets you select, for a window, highlight "asm"
"c/c++" "none". While auto choosing is good, sometimes it isnt what you
want. Some people dont like syntax highlighting, so there should be an
option to turn it off.
4. Also, GDB can debug other languages. It would be great if there was
a parameterised "soft coded" syntax highlighter. So the user could (say,
for a given extension) set what the end of line comments are, keywords,
etc and get any file to syntax highlight. Looking at it, it seems all of
the languages youve got already, "asm" and "c" could be done with a
common "Tager" that was parameterised, rather than hard coded.
5. Colors, you should be able to select from the config what colors you
want to use to highlight. Ideally, you would want to be able to set
differnet colors for different highlighters.
6. Regarding the comment "The method isn't the fastest but it seems OK
for the moment. " It seems OK, from a code complexity perspective to
me, if it might be slow on some PC's, then a global enable option, which
bypasses all of this, and just does what Insight does now would be a
good option, then a user could say "bugger this its just too slow for
me" and revert to the existing behaviour, that would have negligible
performance impact.
Ill try and test it this week also. If you can add a parameter to
globally "enable"/"disable" this to the config page, and it works as
expected, then i would be advocating its checking in to the source tree,
so its in future snapshots. Then further work like paramterising,
refining etc, can be worked on. I wouldnt want to see this added to the
source tree if it forced everyone to use it (which is why i suggest the
"global enable" option).
Good work though.
Steven
Th.R.Klein wrote:
> Hi
>
> I've ask Vineeth if the developing of the Patch already have started.
> Since Vineeth told me that this is not the case.
> So I'm sending here a patch, which should carefully reviewed.
> The method isn't the fastest but it seems OK for the moment.
>
> cheers,
> Thomas
[snip patch]
next prev parent reply other threads:[~2005-08-03 21:49 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-03 21:12 Th.R.Klein
2005-08-03 21:49 ` Steven Johnson [this message]
2005-08-04 6:13 ` Steven Johnson
2005-08-04 10:25 ` Dave Korn
2005-08-23 20:31 ` Keith Seitz
2005-08-23 22:12 ` Steven Johnson
2005-08-24 3:51 ` Christopher Faylor
2005-08-25 17:49 ` Th.R.Klein
2005-08-25 18:05 ` Jon Beniston
[not found] ` <20050825180548.A35334A8054@cgf.cx>
2005-08-25 18:34 ` Christopher Faylor
2005-08-25 19:06 ` Jon Beniston
[not found] ` <20050825190632.D45444A8059@cgf.cx>
2005-08-25 19:13 ` Christopher Faylor
2005-08-25 19:59 ` Jon Beniston
[not found] ` <20050825195933.041274A805F@cgf.cx>
2005-08-25 20:54 ` Christopher Faylor
2005-08-04 17:35 Th.R.Klein
[not found] <200508251805.j7PI5q4A015633@mx1.redhat.com>
2005-08-25 18:33 ` Keith Seitz
2005-08-25 21:23 ` Steven Johnson
2005-08-26 10:02 ` Dave Korn
2005-08-26 20:22 ` Christopher Faylor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42F271D3.10007@sakuraindustries.com \
--to=sjohnson@sakuraindustries.com \
--cc=Th.R.Klein@web.de \
--cc=insight@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).