phayz | 3 Apr 07:13 2009
Picon

Problem with syntax highlighting & autocomplete with HTML


I often use SciTE as an HTML editor but recently have discovered some
behaviour that I can't explain.  To speed my editing I have
autocompletion of tags turned on.  This works as expected when typing
in a valid tag but it also "works" when I type an invalid tag, and not
as I expect.

For example, if I type "<this is a test" and close the invalid tag
with ">", SciTE automatically inserts "</this>" at the cursor - i.e.
at the end of the "<this is a test>".  Is there any way I can prevent
SciTE from highlighting invalid tags?  I don't rely on SciTE to check
the validity of my HTML documents, but I'd prefer that invalid tags
weren't highlighted.

In another example I am often inserting XHTML <img> tags but they're
not being highlighted correctly.

For example, if I type <img src="image.png" alt="Lovely picture" />,
everything up to the closing "/>" is highlighted correctly.  However
the closing "/>" appears in the colours reserved for "Text" (according
to the html.properties file).

Is my XHTML code invalid, is there more I need to do to have this code
highlighted correctly, or is this a limitation of SciTE/Scintilla?

Regards,

Russell Dickenson
Australia
--~--~---------~--~----~------------~-------~--~----~
(Continue reading)

Picon

Re: Keyboard macros and other things


On Fri, Mar 27, 2009 at 1:20 PM, Neil Hodgson <nyamatongwe <at> gmail.com> wrote:
>
> Pedro Andres Aranda Gutierrez:
>
>> There seems to be nice work going on  <at>  Scite-Ru on keyboard macros.
>> Is that going to make it to mainstream?
>
>   If this is referring to defining more complex key definitions then
> possibly. If its about recordable keyboard macros then less likely.

My .2 cents on this.

For really heavy tasks, I use EMACS. SciTE is my Notepad substitute.
I agree that a scripting language is much more capable, but it's less
flexible. Macros are for small things on the fly, while scripting is for
giving some of the keyboard macros which have been useful a more
permanent home.

>> Would there be a way of limiting language support  <at>  compile time. It's
>> really nice to have all that languages available. But then, in real life,
>> I only use 5 of them. If there was a config file to specify which things
>> I need and which I don't, that would be reaaaally nice :-)
>
>   Write a script that removes other Lex*.cxx files, runs LexGen.py
> and build. Something like (in Python):
>
> import glob, os
> wanted = 'CPP Pascal Python'
> wantedFiles = set('Lex'+x+'.cxx' for x in wanted.split())
(Continue reading)

Neil Hodgson | 4 Apr 01:00 2009
Picon

Re: Problem with syntax highlighting & autocomplete with HTML


phayz:

> For example, if I type "<this is a test" and close the invalid tag
> with ">", SciTE automatically inserts "</this>" at the cursor - i.e.
> at the end of the "<this is a test>".  Is there any way I can prevent
> SciTE from highlighting invalid tags?

   Unknown tags are 'badlighted' in red. You can change this colour by
setting style.hypertext.2.

> For example, if I type <img src="image.png" alt="Lovely picture" />,
> everything up to the closing "/>" is highlighted correctly.  However
> the closing "/>" appears in the colours reserved for "Text" (according
> to the html.properties file).

   Tag ends have their own style.

# XML style tag ends '/>'
style.hypertext.11=fore:#000080

   Neil

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

(Continue reading)

phayz | 6 Apr 07:00 2009
Picon

Re: Problem with syntax highlighting & autocomplete with HTML


On Apr 4, 9:00 am, Neil Hodgson <nyamaton... <at> gmail.com> wrote:
> phayz:
>
> > For example, if I type "<this is a test" and close the invalid tag
> > with ">", SciTE automatically inserts "</this>" at the cursor - i.e.
> > at the end of the "<this is a test>".  Is there any way I can prevent
> > SciTE from highlighting invalid tags?
>
>    Unknown tags are 'badlighted' in red. You can change this colour by
> setting style.hypertext.2.
>
> > For example, if I type <img src="image.png" alt="Lovely picture" />,
> > everything up to the closing "/>" is highlighted correctly.  However
> > the closing "/>" appears in the colours reserved for "Text" (according
> > to the html.properties file).
>
>    Tag ends have their own style.
>
> # XML style tag ends '/>'
> style.hypertext.11=fore:#000080
>
>    Neil

Neil,

Your advice solved both my problems.  The cause of the problem was, of
course, me in that I have been heavily tweaking colour scheme settings
in various properties files, including html.properties.

(Continue reading)

okraits | 8 Apr 19:37 2009
Picon

Commercial usage of SciTE


Hello,

i have a question regarding the license of SciTE. If i modify SciTE
for my customer's needs, am i allowed to sell SciTE without also
distributing the sourcecode?

Regards,

Oliver
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Neil Hodgson | 9 Apr 02:22 2009
Picon

Re: Commercial usage of SciTE


okraits:

> i have a question regarding the license of SciTE. If i modify SciTE
> for my customer's needs, am i allowed to sell SciTE without also
> distributing the sourcecode?

   Yes.

   Neil

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

okraits | 9 Apr 10:41 2009
Picon

Re: Commercial usage of SciTE


Thanks for the reply!

Oliver

On 9 Apr., 02:22, Neil Hodgson <nyamaton... <at> gmail.com> wrote:
> okraits:
>
> > i have a question regarding the license of SciTE. If i modify SciTE
> > for my customer's needs, am i allowed to sell SciTE without also
> > distributing the sourcecode?
>
>    Yes.
>
>    Neil
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Nishi | 9 Apr 21:13 2009
Picon

Indent, and Dedent vs Unindent


Hello,
I propose to replace the charming 'dedent' word with the 'Unindent",
just like in MS Office/Visual Studio. Just curious, how it was
invented :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

RichardOnRails | 11 Apr 20:34 2009

Syntax coloring wrong for attempted selection by cursor-dragging


Hi,

I'm running SciTE Version 1.74 over WinXP-Pro/SP3 and it works
beautifully.

I copied the directory housing SciTE.exe wholesale to my daughter's
WinXP-MediaCenterEdition/SP3 computer.  Everything seems to working
perfectly here too ... almost.

The only problem I've encountered is trying to highlight some text by
dragging the cursor (actually, "carat", to use precise Windows
jargon).  The dragged-over text's appearance remains unchanged,
though copying it and deleting it both work correctly.

I'm pretty sure the problem is with XP, because I see strange coloring
in other applications.  I set the coloring theme to "Windows XP", but
that has not cleared up all anomalies.

Nevertheless,  I posted this question in case anybody thinks SciTE is
possibly contributing to my problem.

Thanks in Advance,
Richard

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
(Continue reading)

Vais Salikhov | 12 Apr 09:07 2009
Picon

Re: Syntax coloring wrong for attempted selection by cursor-dragging


The problem is most likely neither scite nor windows, but rather the  
video card/monitor itself not being able to display certain very light  
shades of gray. Changing the color used for selection highlighting in  
scite global properties file should fix the problem. This properties  
file is usually in the same folder as the scite exe file.

Hope this helps,

Vais

Sent from my iPhone

On Apr 11, 2009, at 2:34 PM, RichardOnRails <RichardDummyMailbox58407 <at> USComputerGurus.com 
 > wrote:

>
> Hi,
>
> I'm running SciTE Version 1.74 over WinXP-Pro/SP3 and it works
> beautifully.
>
> I copied the directory housing SciTE.exe wholesale to my daughter's
> WinXP-MediaCenterEdition/SP3 computer.  Everything seems to working
> perfectly here too ... almost.
>
> The only problem I've encountered is trying to highlight some text by
> dragging the cursor (actually, "carat", to use precise Windows
> jargon).  The dragged-over text's appearance remains unchanged,
> though copying it and deleting it both work correctly.
(Continue reading)


Gmane