Closed ajtruckle closed 6 months ago
I am going to use the wrapper class CScintillaCtrl:
https://www.naughter.com/scintilla.html
There are two underlying controls:
Scintilla https://www.scintilla.org/
Lexilla is also available here on GitHub:
Linking here for my own reference:
@cengizu
Progress!
Looks great!
@cengizu
Glad you like it! And now I have been making changes to the Script Builder window:
@cengizu
I am sending you a new beta:
@cengizu
Implemented Edit menu, with the following features:
The clipboard features are also available on the right-click context menu.
@cengizu
Updated View menu:
Added:
@cengizu
Added support for Word Wrap to the View menu:
There are several ways to configure Line Wrapping in Scintilla, and I opted to use the Word mode (as opposed to Character or Whitespace). It is also possible to show little arrows to indicate the line is word-wrapped, but I have not activated this feature.
@cengizu
I have added searching capabilities to the editor.
@stecchio66
Displaying CSS does not work in custom styles. Example: Publishers Assignments Report
All template (XSL) files need to specify the HTML namespace, like this:
xmlns="http://www.w3.org/1999/xhtml"
Otherwise the link
elements won't be found. I have now corrected all default templates but you will need to edit your own for this feature to work correctly.
Please be aware that the Custom--Publishers Assignments Report template is technically obsolete. It was replaced by the the PublisherDB--Publishers Assignments Report template. This latter template can be accessed from the Publisher Database report viewer.
You can continue to duplicate the template with the Custom prefix if you want it available in the Meeting Editor, but it will never get updated by the installer. So please be aware of this.
I have taken the opportunity to add support for Scintilla to the Database Report Viewer. So selecting CSS / XSL are now behaving in a consistent manner as the other editors.
There seemed to be a regression with the scintilla editor and it was not detecting when the file had been modified. So it never offered to save your changes. This confused me at first because it used to work. I think I have now resolved it and got it working again.
Also, the editor is supposed to leave the file in a read only state when it is displayed (if the read only flag is set). I have re-instated this behaviour. So if you want to edit an default template you will need to perform a File Save As first.
At the moment it is not clear to the user that the file might be read only, other than the fact that they can't edit it. WE could consider adding a status bar. For example:
Perhaps such a status bar could indicate if the file is read only. Or we could add it to the file name on the title bar or some other way.
New betas on their way to you.
@stecchio66 @cengizu
At the moment it is not clear to the user that the file might be read only, other than the fact that they can't edit it.
In NotePad++ It handles this issue like this:
Fortunately, Notepad++ has their translations available online! So I have collated the ones we need:
Language | Translation | Translation |
---|---|---|
eng | Clear Read-Only Flag | Set Read-Only |
csy | Zrušit příznak Pouze pro čtení | Nastavit p&říznak Pouze pro čtení |
dan | Fjern skrivebeskyttelse | Sæt skrivebeskyttelse |
deu | Schreibschutz-Attribut löschen | Schreibschutz |
ell | Καθαρισμός μόνο για ανάγνωση μεταβητής flag | Ορισμός Μόνο για Ανάγνωση |
esp | Desactivar solo lectura | Solo lectura |
fin | Poista kirjoitussuojaus | Aseta kirjoitussuojaus |
fra | Enlever l'attribut de lecture seule du fichier | Lecture seule pour le document actuel |
hun | Írásvédett attribútum törlése | Írásvédett |
ita | Rimuovi attributo di sola lettura del file | Sessione documento in sola lettura |
jpn | ファイルの読み取り専用を解除 | 読み取り専用モード(S) |
nld | Alleen-lezen opheffen | Instellen als alleen-lezen |
plk | Usuń atrybut tylko do odczytu z pliku | Zablokuj edycję |
ptb | Desmarcar como somente leitura | Definir como somente leitura |
ptg | Limpar o símbolo só de leitura do ficheiro | Definir como só de leitura |
rom | Eliminare stare doar citire | Setare stare doar citire |
rus | Снять "Только Чтение" | "Только Чтение" файла |
slv | Počisti zastavico Samo za branje | Nastavi samo za branje |
sqi | Pastro flamurin vetëm-lexo | Vendos vetëm-lexo |
sve | Inaktivera skrivskydd | Aktivera skrivskydd |
trk | Salt Okunur İşaretini Kaldır | Salt Okunur Yap |
ukr | Прибрати атрибут «Лише читання» | Лише читання |
I propose implementing the same functionality. This way, it becomes easier for the user:
@stecchio66 @cengizu Whilst the Set / Clear can still be implemented. The simplest solution was staring me in the face. We simply set the editor and editable whenever you save the file. Job done.
@stecchio66 @cengizu Whilst I have ideas for new features for the Script Editor, and still have the help topic to write, are we in agreement that we can close the current ticket?
Is your feature request related to a problem? Please describe. Not a problem as such. But MSA has the ability to show text in a dialog.
For example:
Describe the solution you'd like Add support for the Scintilla control which sponsors syntax highlighting.