🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #85167

Re: [Xnews] Strange Characters

#85167
From: Robert Amesz
Date: Sat, 06 Oct 2001 01:30
50 lines
3239 bytes
Alan Miller wrote:

> Allan Girvan (allangirvan@yahoo.com) wrote:
>
>> The problem lies, I think, with riched32.dll and the Windows
>> clipboard. To that extent I don't think that Luu can do much about
>> it. 
> 
> Switch to using Scintilla ( http://www.scintilla.org/ )for editing?
>
> It's designed as a code editing component, but I don't think
> there's anything that would make it unsuitable as a text editor
> control for a newsreader.

Good idea! There's one problem, though: it's written in either C or C++ 
(can't remember which), so the interface with Delphi would require some 
work. For the lexer (which maker it possible to assign different styles 
to different parts of the text) you'd have the same interface issues, 
only this time the other way around.

One big advantage is that the same component can be used in both the 
editor and the viewer. That would even make it possible to make the 
view-window in the outbox editable, so you wouldn't need to open a new 
editing window to make a few changes.


> Originally written as a replacement for the rich edit control
> because of headaches when using it to edit code (e.g. style changes
> flagged the document as having been modified, even though all that
> gets saved is plain text).

And it does a great job. Scintilla's own editor ScitTE, built around 
the Scintilla component, is tiny by today's standards (only about 350 
Kb zipped, and that includes the docs) but knows how to syntax-colour 
at least a dozen programming languages, and knows advanced tricks like 
code completion.[*] The price you pay for it being so small is that you 
have to edit the configuration files directly instead of having a 
plethora of dialogs.

Oh, and it's free, by the way.

(Somewhat off topic, this part; I'm sorry about that.)


Robert Amesz
-- 
[*] You need to have a special .api file for that to work, though. For 
Python it's nearly 350 Kb, so I can see why those are just optional and 
not included. 
Technical Details
Message-ID: <Xns91321A7083A34rcamesz@127.0.0.1>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-02!sn-post-01!supernews.com!news.demon.nl!amesz.demon.nl!not-for-mail
References: <Xns912F86BED53170279amud@167.206.112.134> <9pg9i9.294.1@ID-66775.user.dfncis.de> <MPG.1626b77c7e2b0c9c989837@news-enteract>

Show Full Headers
Complete Article Headers
Message-ID: <Xns91321A7083A34rcamesz@127.0.0.1>
Subject: Re: [Xnews] Strange Characters
Date: Sat, 06 Oct 2001 01:30:35 -0000
From: Robert Amesz <reqhye72zux@mailexpire.com>
References: <Xns912F86BED53170279amud@167.206.112.134> <9pg9i9.294.1@ID-66775.user.dfncis.de> <MPG.1626b77c7e2b0c9c989837@news-enteract>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-02!sn-post-01!supernews.com!news.demon.nl!amesz.demon.nl!not-for-mail
Newsgroups: news.software.readers
User-Agent: Xnews/4.06.22 Hamster/1.3.22.104
X-Face: i/!"w>!GV8UL{^20`L2OEvvFz(T"{bFYn2<:u"5<4Blsl-isl(bTDMKVqWL?nk-VY7[[);j =yB|s]|c3nRG4c7^1#+/(D)v4ToNC;PoE=\7baN'i75%+2NhzndU~qJUTI*-v[R"l)Q$GOX3o(-#7C iY6a`%._v`G8cG`!/3,mt?pkyvjv3f}\-mZiNnXJ9EK~D>Qs(ckW8yam<<T!\Kf>`wtj3>eEAAV\
Reply-To: rcamesz@dds.nl
X-Complaints-To: abuse@nl.demon.net
NNTP-Posting-Host: amesz.demon.nl
X-NNTP-Posting-Host: amesz.demon.nl:212.238.72.220
X-Trace: news.demon.nl 1002331832 news:76968 NO-IDENT amesz.demon.nl:212.238.72.220
Lines: 49