tetsuo | 15 May 2013 00:01
Picon

Search in selection?


Hello. I would like to be pointed to a Lua script to make a "search in selection". That functionality is
present in the "Replace" function, but it only works for replacing. I would like to find stuff in a
selection and wrap around the search while in it.

Thank you.

--

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

trismarck | 14 May 2013 15:04
Picon
Gravatar

What is the default Character Set if character.set=0?

Hello,

I have a question about the default Character Set that Scite uses when it opens a text file w/o the Unicode BOM (or w/o any other indication, what the character encoding of the text file is).
There is a setting in File: Encoding, that is called "Code Page Property". I've found out that this option maps to the code.page setting in the SciTEGlobal.Properties file (Options: Open Global Properties). What I have set there is: code.page=0, which means that, to display the contents of the text file, a _single_-byte code page will be used.
On this newsgroup I've found the information that the code.page setting is actually only needed to determine, _how many bytes_ does each character in the text file translates to (I know there exist 'code pages' for which not every character maps to the same number of bytes), and not to set a particular character set. So, if code.page=0, then that means that each character in the text file is interpreted as a single byte.
The second setting is the character.set setting. This setting determines, what character set will be used to map the bytes (or byte sequences) in the file to the actual characters (characters that this character.set contains).
Now, the documentation tells me that the character.set=0 means the 'Default' character set. This is the part where I get stuck - how does Scite determine, what is this 'default' character set? Does Scite use some Windows API call to i.e. determine the default code page of the OS? I've actually sifted through the source code and I've found out that, if Scite uses GTK+ or Qt, then the SC_CHARSET_DEFAULT preprocessor directive (see Scintilla.h) maps to 0, which maps to ISO-8859-1 (see CharacterSetID() function in PlatGTK.cxx and PlatQt.cxx). But, I'm not sure if the same happens on Windows - I couldn't find the function that would tell me, how the default character set is determined if Scite uses Windows controls. In ScintillaWin.cxx I've found the CodePageFromCharset() function that takes the VisualStyle object that has the Style subobject and this Style subobject has the .characterset property defined, but I can't figure out, how is this property set (or this property is actually relevant to my original question) if Scite uses Windows controls.

So the questions I have:
1.
What is the default Character Set if character.set=0? (if Scite uses Windows controls)
2. What is the function is the Scite source code that determines, what is the default Character Set? (is this just a fixed setting or does Scite use Windows API calls? (and if it uses those calls, where can I find them in the code) )
3. How is the .characterset property of the Style subobject of the VisualStyle object set by default (and is this at all relevant to what I'm asking about).

What I want to do is to roughly understand, how does the text editor use a given character encoding to read a text file / display the characters that it has read from the text file. Especially, to test this, I need to know exactly, what character set Scite used to encode characters to the file (characters -> byte sequences).

Cheers and sorry for the long post.

--
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scite-interest+unsubscribe <at> googlegroups.com.
To post to this group, send email to scite-interest <at> googlegroups.com.
Visit this group at http://groups.google.com/group/scite-interest?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Huynh Cao Ky | 11 May 2013 07:53
Picon

Sass highlight syntax sass.properties

Hi,

Does anyone have sass.properties or build it?
Please share if you have it. 
Thanks!

--

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

George | 8 May 2013 23:12
Picon

Project manager?

Is there a good "Project Manager" plugin for SciTE?
Google found me three potential candidates:
- sciteproj which requires GTK and direct work with X11. I understand the use of glib in such project and (maybe) GTK, but the need for X11 functions prevent this from work on Windows.
- Scite Project Manager. Requires AutoIT and probably will work on Windows (did not try myself), but will not work on Linux.
- filerx. Saw several topics about it, with a "unfortunately not supported anymore" conclusions.

Did I miss any other promising project managers? I do need something which can live on both systems.
How do you work with multi-file projects?

--
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scite-interest+unsubscribe <at> googlegroups.com.
To post to this group, send email to scite-interest <at> googlegroups.com.
Visit this group at http://groups.google.com/group/scite-interest?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Ashwin Hirschi | 8 May 2013 18:24
Picon

Caret invisible after toggling all folds twice

Often when I use the "Toggle all folds" command (from the View menu) I find that the caret is not visible anymore after unfolding. I need to press something like the down key to have Scite adjust the view and continue working...

Is this the intended behaviour? I find it a bit unfriendly...

I'm not sure if others are experiencing this too, but it looks quite easy to replicate: just open a largish file, move the caret somewhere near the end, perform the Toggle all folds command twice, and the caret is nowhere to be seen.

Perhaps something like a scroll caret action at the end of the FoldAll function could improve things?

Ashwin.

--
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scite-interest+unsubscribe <at> googlegroups.com.
To post to this group, send email to scite-interest <at> googlegroups.com.
Visit this group at http://groups.google.com/group/scite-interest?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Ingemar | 7 May 2013 10:49
Picon

Complete list of keyboard shortcuts

Hi,

I've been looking all over (I think :)) for a complete list of keyboard shortcuts that are available in
SciTE. But I can't find any. The SciTEDoc.html file says "Keyboard commands in SciTE mostly follow common
Windows and GTK+ conventions" and then there is a list of commands mapped to keyboard that aren't
available in any SciTE menu.
Is there such a list available or - even better - a way to list all currently defined keyboard shortcuts?

Regards,
Ingemar

--

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

Amir Sabbagh | 29 Apr 2013 10:28
Picon

copy and paste inside Find-replace strip

Hi all,
I am creating a new thread to keep things cleaner.

I am using Scite Version 3.2.1 on Windows XP 64 bit
if I write something in the strip (either in the "Find" field or in the "Replace Field") and then i try to copy it with Ctrl+C and paste it to somewhere else, e.g. to the Scite window, the selection is not grabbed.
If I performed some copy and paste before, it is pasted that one instead the selection in the strip.

To grab the text in the strip I have to right click on the selection and choose Copy from the menu.

Amir

--
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scite-interest+unsubscribe <at> googlegroups.com.
To post to this group, send email to scite-interest <at> googlegroups.com.
Visit this group at http://groups.google.com/group/scite-interest?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Ashwin Hirschi | 26 Apr 2013 05:53
Picon

MRU mangling...?

For quite a while Scite's MRU list has been bothering me. It seems to act erratically, with files I've closed first showing up in the list and then mysteriously disappearing later on. 

Oddly enough, each time new entries disappeared older entries would show up in their place. Often files I had worked on the day before... Weird (and quite annoying)!

Today, it finally annoyed me enough to drop my work and try and figure out what's going on. Fortunately, I think I've solved this little mystery:

It turns out the MRU list is *not* mangled if I simply open files using a File menu command. But, things *do* go wrong if I open a file by (directly or indirectly) starting a 2nd Scite instance.

My Scite setup has check.if.already.open=1 as well as save.recent=1. So, what happens is, the 2nd instance passes its commandline to the 1st (already running) instance and then stops. The original instance will process the commandline and open any files that are mentioned.

So far, so groovy, it seems. However, in ProcessCommandLine (in SciTEBase.cxx) there are 2 places where both InitialiseBuffers and RestoreRecentMenu are called...

The one close to the end of the function looks fine to me, since it's only called if the buffers aren't already initialised. But the first occurrance of RestoreRecentMenu seems odd. Is this the place that keeps resetting my MRU list to a previous state? I believe so.

So, my question is: should those 3 lines (4712-4714; version 3.3.1) really be there? Won't this logic be called during phase 1 (in the section below) anyway?

I'm not familiar enough with Scite's code base to say for certain. But it seems to me that if a running instance is processing new parameters passed to it, it should leave the MRU list alone...

What do you think?

Ashwin.

--
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scite-interest+unsubscribe <at> googlegroups.com.
To post to this group, send email to scite-interest <at> googlegroups.com.
Visit this group at http://groups.google.com/group/scite-interest?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Neil Hodgson | 26 Apr 2013 01:04

Clang address sanitizer on GTK+

   AddressSanitizer is a tool for finding memory bugs, like writing beyond allocations, which is included in
recent versions of Clang. 
http://code.google.com/p/address-sanitizer/wiki/AddressSanitizer
   The main advantage of AddressSanitizer over other tools like Valgrind is that its faster so builds that
include it can be used as normal.

   New Linux distributions like Ubuntu 13.04 include Clang 3.2 so allow use of AddressSanitizer. I've
updated the make files for Scintilla and SciTE to use AddressSanitizer for Clang debug builds (make
CLANG=1 DEBUG=1). No new bugs have been found yet but I suspect there may be bugs in lexers I don't use. 

   Neil

--

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

Odaylton Junior- BR | 24 Apr 2013 03:45
Picon

another suggestion

Hello Again ...

One point that I do not know if it's a limitation of autoit or SCITE but if possible would be very helpful ...

Imagine the situation:

After performing a listing, all was well when suddenly an error occurs.

Ok but if I knew the values of variables at the time of the error would be very useful for debugging.

1) Display the line that gave the error (OK)

2) Location of error (OK)

3) Values of Variables involved in Line (Tip)

4) Values in alphabetical order of the Local Variables in Function Location (Hint)

5) Amounts in alphabetical order of global variables (Tip)

PS when Matrix Display all data (Tip)

 

If so show me where I can post this suggestion

--
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scite-interest+unsubscribe <at> googlegroups.com.
To post to this group, send email to scite-interest <at> googlegroups.com.
Visit this group at http://groups.google.com/group/scite-interest?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Odaylton Junior- BR | 21 Apr 2013 03:26
Picon

error in the vertical scroll bar

 error in the vertical scroll bar

When I'm rolling the bar with the mouse and my program does not occupy the entire horizontal line of the window is fine but (image 1)
 

 
 
 
 if there is some pretty big line that spans the entire horizontal line horizontal scroll bar appears as you would expect .
  but keep clicking no longer works because I have to climb the mouse position to reach the scroll wheel ...
(image 2)

 

I suggest you lock the horizontal scroll bar disabled but existing for the vertical scroll button not be shifting all the time ....

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

Gmane