Giter VIP home page Giter VIP logo

alexey-t / synwrite Goto Github PK

View Code? Open in Web Editor NEW
68.0 68.0 19.0 22.17 MB

SynWrite text editor. Not the entire source, because EControl is closed-source. If you get the license for EControl, I will help to compile the SynWrite.

Home Page: http://uvviewsoft.com/synwrite/

Pascal 96.76% Python 0.50% Inno Setup 0.04% Batchfile 0.02% PHP 0.65% Makefile 0.04% C++ 1.58% HTML 0.39% SourcePawn 0.01% C 0.01% CSS 0.01% JavaScript 0.01% Perl 0.01% Ruby 0.01% Java 0.01% XSLT 0.01% Classic ASP 0.01% VBScript 0.01%
pascal syntax-highlighting text-editor

synwrite's People

Contributors

alexey-t avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

synwrite's Issues

(API, req) app_proc(PROC_GET_KEYSTATE)

Нужен способ узнать какие сейчас зажаты клавиши модификаторы.
Аналог в Куд:

app_proc
PROC_GET_KEYSTATE: Gets state of pressed special keys. String has "c" for Ctrl pressed, "a" for Alt, "s" for Shift, "m" for Meta (Windows key). 

How to use blanks to indent block for lexer?

В разделе настроек Insert/Format стоит Tab char для Tab mode.
В разделе настроек LexOverrides для Python стоит Spaces для Tab mode.

  • По Tab внутри строки вставляются пробелы.
  • Но при сдвиге блока вставляются табуляторы

Как настроить, чтобы блоки сдвигались пробелами только в Питоне?

blinking with plugin

BracketHilite plugin
Edit .md file: editor blinks on typing
Seems API makes blinking

app.msg_status('')

[ENHANCEMENT] capitalization effect in lexer

Can you add an option to transform the keyword in the same case it is provided in the lexer configuration?
The goal is to be able to auto convert keywords such "msgbox" to "MsgBox" in VBScript, or "elseif" to "ElseIf".

Thanks a lot.

Reposition caret when file saves, line trims

When saving with trim trailing spaces enabled and "Allow caret after end of line" disabled , considering a line ending with some spaces and the caret at the end of this line, saving will not reposition the caret to the new end of line.
Thus, continuing typing re-inserts spaces before what the user types.
Tested on version: 6.21.2240

Thanks for fixing.

cannot open cmdline param "dir/dir/filename.ext"

I'm on Windows 7, 32-bit (at work), and I'm experiencing an intermittent issue here.
My console is tcc/le 32-bit, within ConsoleZ.

I'm sitting in directory C:\SourceCode\kora_rel , and typed:
syn common\app\main.c
and got an error dialog: "File does not exist, create it?"
However, file does exist.
I can fix it by switching to forward slashes:
syn common/app/main.c
and the file loads just fine.

But why should the latter form even work? I'm not running a linux-style shell.
Also, I don't always have this issue; in some cases, the relative path with backslashes works fine.

This isn't a major issue, but it is confusing!! Any insights into what is going on?

Installing python addon in SynWrite ??

I have a first-pass prototype for the "backup to specified directory" addon, and I'm trying to install it.

I'm looking at TutorialPlugins1.odt which comes with your package. It states the following:

"To call new plugin, just call ready menu item “Tools - Plugins - SynMyGoto”. "

However, there is no Plugins under Tools.

There is a separate Plugins menu, but it doesn't have any option for running/installing/loading a plugin.

I looked at Options -> Addon Manager, but none of those options seem to actually work.
The Install option there, does not list my plugin.

I installed my plugin in:
C:\SynWrite\Plugins\SynStaticBackup
which is the subdirectory that I listed in install.inf

What do I actually need to do??
(BTW, you should probably review TutorialPlugins1.odt, seems to need some updates)

feature request: text search - show all ?

This is a feature that has been present in other editors, and is very useful in many cases.
right now, in SynWrite, I can count all occurrences, but I have to just look at each one, one at a time.
When searching source code for a target, it is often useful to be able to get a list of all instances of that target, then select which I wish to visit.

What would it take to implement this in SynWrite? At a minimum, I would accept having the list dumped to the Output window, with line numbers shown. Even better would be if I could double-click on a line in the results window, and have that move the cursor to that line in the file window.

Please comment on what this would require??

RTL support

I can't use it for RTL language.
It will have to add LTR/RTL buttons, for changing the alignment and the direction of writing.

app shows always on 1st monitor

Настройки программы - Вид - Сохранять положение окна
при включенном и выключенном состоянии запуск редактора всегда происходит на главном мониторе.
Прочие настройки сохраняются нормально.

external tool php.exe, HTML tag- not skipped

Вопрос 2
Во внешние инструменты я добавил php.exe для проверки кода,
и во внутренем менеджере Строки вывода поставил Удаление HTML-теги из вывода и послал на проверку echo без точки с запятой, что бы проверить вывод.
Однако вывод дает мне подобную строку с кучей html мусора:
Код:

<script language=JavaScript src='/denwer/errors/phperror_js.php'></script><!--error--><br />

Replacing text with another marks the whole document as changed.

In a text file containing some lines with only 3 occurrences of a dedicated word "nice" (see attached file:
xxx.txt)

When replacing all "nice" to "awesome", the whole document appears as changed (band on gutter changed color for all lines).

Before:
before

Replace option:
replace
--> And select "Replace All"

After:
after

May be there is a link between this ticket and #7

Thanks for considering this ticket.
Best regards.

problems with assigning custom colors

I am having an issue when selecting colors; when using 'Define Custom Colors' in the color dialog, I get unexpected behavior.
The enclosed screen capture demonstrates some common aspects of this issue.
My OS is Windows 7 32-bit, I have also seen this on 64-bit.

My actions:

select 'Define Custom Colors'
type in the RGB values that I wish to use (in this case, I used 0,64,64)
At this point, if I click 'Add to Custom Colors', nothing happens at all; the button press is ignored.
click on the thin color bar on the right-hand side of dialog, sadly, this typically changes my color selection slightly.
click 'Add to Custom Colors' again; now the color gets added to the list - but notice that it was stored in the wrong box;
I had checked box 2 on top row, my color was actually added to box 2 of bottom row
click OK, and my color is used... good...

However, if I open the color dialog back open again (to set another color), this color assignment is completely discarded!!

To be honest, I have seen this exact issue with several different editors that use the Color dialog, but I've never been able to solve it.
Does anyone here have a solution for this??

I'm having trouble uploading the image, so here's a link to the image on Flickr:
https://www.flickr.com/photos/derelllicht/31329116403/

Page setup- var for total count of pages

в диалог настроек страницы одну переменную с общим числом страниц - иногда не хватает.

(bug) dlg_custom - hidden controls

hid-ctrls
Репро (м.б. только на Win, только у меня):

  • Клик ЛКМ по любой кнопке
  • Нажать Alt

Должен быть такой вид
all-ctrls

Del API actions?

@kvichans Can i delete this IDs in app_prop()? Not used in any plugs from SF.net
SynWrite.
Other API can do it: ed_handles() etc

  • PROP_GROUP_INDEX | R | int | Index of active tab-group. 1-based.
  • PROP_GROUPS | R | str | Count of tabs in each tab-group. It's ","-separated list of ints. "2,4,0," shows: "3 groups visible, 2 tabs in group1, 4 tabs in group2". "2,0,0,6," shows: "4 groups visible, 2 tabs in group1, 6 tabs in group4".
  • PROP_EDITOR_BY_INDEX | R | int | Handle (pass it to Editor() to make object) of editor at given group-index and tab-index. value parameter must be 3 numbers ","-separated. ..

Sort plug

Wish for @kvichans

вот такой дл в Сине-
sort

(и 2 кмд- sort asc/ desc)
хочется выкинуть код и иметь плаг;
Чтобы облегчить Син
(Син 6.21 имеет dlg_custom)

Mouse cursor is not different when moving and when copying text selection

When drag-dropping selected text, the mouse cursor is the same even if CTRL key is pressed.
But, CTRL key, in such case, will copy text instead of moving it.

Can you change the mouse cursor and add a (+) in the add-left corner of the mouse cursor when copying text?
I hope this is not internal to EControl.ru...

Thanks
Regards

auto-complete, block in comment

Can you add 2 checkboxes?

  • 1 to prevent popup to be shown when the caret is in a comment
  • 1 for the same thing but in a string

Thanks a lot

option for backup directory is not really satisfactory

you offer option of %appdata%/SynWrite, or file directory. I definitely don't want it in the file directory, it really confuses Git, and my employer doesn't want me making updates to .gitignore (to ignore backup files).
In the meantime, %appdata%/SynWrite is failing when I try to save, perhaps because the subdirectories don't exist, I'm not sure.
What I really prefer, is to be able to specify where backups go, as I do with all other editors that I've used.
Could we please get this implemented ??

Strange behavior with TAB key

My TAB key is mapped to "Insert TAB character" (default behavior).

I noticed a different behavior with selected line and TAB key press:

  • One selected line is NOT indentable using TAB key: the line is fully overwritten by a tab character.
  • But if 2 lines or more are selected, everything is OK: they are all indented.

So, I don't really understand why this happened like this but I think one (case where only one) selected line must be indentable using TAB.

Thanks for considering this ticket.
Reagrds

[ENHANCEMENT] - New options

Can you add those useful features please:

  • "open directory in explorer" (in right click of a tab and in file menu)
  • "open directory in command prompt" (in right click of a tab and in file menu)
  • "Copy to group" in right click of a tab
  • "Delete file" in right click of a tab (already present in File menu)

Thanks
Best regards

Debugging guide requested

Heh... I had asked 4 questions here, and 3 of them I figured out myself!!
I'm having mostly python issues, not SynWrite-plugin issues.

However, I do have one question that I cannot yet figure out:
4. Slightly unrelated topic; where do I set Panel colors ?
I'm using Deviant Dark skin, and the Console output is black-on-almost-black !!

(bug, API) dlg_custom start focus

dlg_custom_ctrls.txt
Код

import  sw as  app
app.dlg_custom("Find in Files (1.1.13)",759,117,open(r"dlg_custom_ctrls.txt").read(), 8)

ставит фокус на .*
focus

А должен ставить на 8-ой контрол, то есть на сомбо правее Find.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.