POV-Ray : Newsgroups : povray.windows : Windows XP question, kinda dumb : Re: Windows XP question, kinda dumb Server Time
2 Jul 2024 22:56:20 EDT (-0400)
  Re: Windows XP question, kinda dumb  
From: Patrick Elliott
Date: 6 Nov 2002 19:19:34
Message: <MPG.18335da13aca77539896b1@news.povray.org>
In article <Xns### [at] 204213191226>, Phi### [at] GMXnet 
says...
> Peter Popov <pet### [at] vipbg> wrote in
> news:90dhsu89k2fl8u3it1hms6bmjnaih4aurd@4ax.com: 
> 
> > On 5 Nov 2002 06:16:09 -0500, Philippe Lhoste <Phi### [at] GMXnet> wrote:
> > 
> >>You *may* be interested by a little program of mine, that I made to be
> >>able to view HTML sources from IE in SciTE... Because IE *always* use 
> >>Notepad.
> > 
> > I did this with the TweakUI powertoy by Microsoft, I find this way
> > even cleaner as it's native to the system (more or less).
> 
> I guess this is specific to the WinXP TweakUI, mine (NT/9x) doesn't do 
> this. Now, you can use TweakUI to set ProgLauncher as the default editor 
> :-)
> 
> >>I also added to SciTE a F12 shortcut to colorize HTML just to this 
> >>purpose, because IE's View source remove file extension (ie.
> >>HomePage.html becomes HomePage[1]).
> > 
> > I have that in my version of SciTE... perhaps you submitted your
> > changes to the SciTE team?
> 
> Yes, and as Neil Hodgson is a nice guy, he accepts most of my patches :-)
> 
> >>Good choice of editor...
> > 
> > If only it supported auto-indenting and alt-dragging Codemax-style...
> 
> It has auto-indenting, but it is very primitive. This is hard to implement 
> it right, at least in a generic (language independent) manner. Or perhaps 
> we should add this to the lexers, as it has be done with the folding code.
> That's why we added a simplistic but useful mode, where SciTE just copy 
> the indentation of the previous line when hitting Enter.
> 
> What does Alt-drag? On Scintilla/SciTE, if you hold down the Alt key and 
> drag the mouse over text, it makes a rectangular selection.
> It has to be improved, eg. to allow replacing text in rect. sel. only, or 
> to have a multi-line cursor. Both are not obvious with the current 
> implementation of rectangular selections.
> 
> >>I still plan to make a SDL lexer, and now I know how to make 
> >>(almost) unlimited nesting of comments...
> > 
> > That explains part of the mystery... you're one of *them* :)
> 
> Grin :)
> See About box...
> 
> 
Yeah.. Auto indent is one of the things you have to turn on manually, 
then get the right combo of setting for it to work correctly. My 
suggestion is:

tabsize=2
indent.size=2
use.tabs=0
indent.automatic=1
tab.indents=1
backspace.unindents=1

Most of these can just be uncommented, but the use.tabs=0 is sort of 
critical, since it is imho a pain in the backside to load someone elses 
file, especially if you are just viewing it in something like winzip's 
internal viewer. And if you share scripts, etc. with others and they load 
them into notepad or the like... In any case this 'should' produce 
reasonably predictable behaviour, unlike the default which always dropped 
back to column 1 every time you got to a new line and needed to drop back 
by a single indent. :P

About the only thing that really bugs me about SciTE is the lack of any 
extra color settings. While rare, there may be cases where you have a 
client that employs say VBscript and has its own command set. Being able 
to color an 'extended' set of such commands without recompiling the whole 
bloody lexer is a major pain. Of course you can just add the needed 
commands to the main list in the properties file, but you can't color 
them correctly that way.

The same goes in my case for the need to have VBscript correctly display 
within XML. The telnet client I use employs a plugin system where 
aliases, triggers, etc. are coded into an XML file and the scripting code 
needed to use them in a script block. I don't really understand how 
lexers work well enough to compile a special one to fix these things (and 
would prefer not having to do so) and there is no other simple way to 
extend things. Having to switch back and forth between VBscript and XML 
display is just annoying, especially since it is the VBscript part of the 
plugin I edit the most often. ;)

All in all, pre-compiling the lexer is useful for speed, but for people 
like me that are either less than competent or plain lazy it is quite 
inconvenient. lol


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.