scintilla

《Oracle Java SE编程自学与面试指南》02-01:Notepad++

你说的曾经没有我的故事 提交于 2020-08-18 04:17:16
深入了解IT/互联网行业及岗位,请参阅 通用IT/互联网岗位招聘计划(最新全岗版) 。 深入了解职业晋升及学习路线,请参阅 最优职业晋升路线和课程学习指南(最新全栈版) 。 内容导航 : 前言 1、Notepad++是什么? 2、下载安装包 3、特点 1、Notepad++是什么? Notepad ++是一个免费的(就像“自由言论”和“免费啤酒”一样)源代码编辑器和记事本的替代品,支持多种语言。运行在MS Windows环境中,它的使用受GPL许可协议的约束。 基于强大的编辑组件Scintilla, notepad++是用c++编写的,使用纯Win32 API和STL,保证了更高的执行速度和更小的程序大小。通过优化尽可能多的例程而不失去用户友好性,Notepad++正试图减少世界二氧化碳排放。当使用更少的CPU功率时,PC可以降低速度并减少功耗,从而实现更绿色的环境。 2、下载安装包 官方下载地址:https://notepad-plus-plus.org/downloads/ 3、特点 小巧 快捷 多种编程语言支持 多种编码支持 好好学习,天天向上!继续下一章…👏👏👏👏👏👏 感谢您阅读,如果对作者其它文章也很感兴趣,请扫码关注!🚀🚀🚀🚀🚀🚀 来源: oschina 链接: https://my.oschina.net/u/4381686/blog/4281766

link from webbrowser to ScintillaNET editor in a same c# form?

霸气de小男生 提交于 2020-01-05 03:18:10
问题 I am new to ScintillaNET. I am using webbrowser and scintillaNET editor component in the same form. My task is when i click a link in webbrowser it should link to a text which is in editor. Any help and suggestion will be appreciated. Thanks in advance. 来源: https://stackoverflow.com/questions/27498332/link-from-webbrowser-to-scintillanet-editor-in-a-same-c-sharp-form

Text replacement in ScintillaNet

这一生的挚爱 提交于 2020-01-04 02:26:45
问题 I have a ScintillaNet text editing control. I want to replace tabs with 4 x space as the user is typing in the control. I'm not exactly sure where to do this as I'm not very familiar with the control. I have been looking into all the events but nothing seems fit. Can someone advice? 回答1: You can do this with the control property ScintillaNET.Indentation, from the GUI or programmatically. Set IndentWidth=4 (four spaces), TabIndents=true, and UseTabs=false. This will indent 4 spaces ever time

QScintilla: how to create a new lexer or modify an existing one?

穿精又带淫゛_ 提交于 2019-12-23 03:09:22
问题 I find the default lexer for C++ highlighting not very specific enough. I want to at least be able to specify a different color for: type keyword (void, int, float etc) instruction keyword (if while do return for etc) class-related keyword (template class virtual friend) type modifiers keywords (static const extern unsigned etc) I found this in the LexerCPP source: const char *QsciLexerCPX::keywords(int set) const { if (set == 1) return "and and_eq asm auto bitand bitor bool break case "

Notepad++ plugin - find and highlight text

家住魔仙堡 提交于 2019-12-21 20:17:10
问题 How do I set and remove color for the find text in a scintilla document by writing plugins for notepad++ in c# . I tried the following code: Win32.SendMessage(PluginBase.GetCurrentScintilla(), SciMsg.SCI_STYLESETBACK, 0, 0xFFFF00); Help me to highlight a particular text. 回答1: If you want to change the selection background color, then try: Win32.SendMessage(PluginBase.GetCurrentScintilla(), SciMsg.SCI_SETSELBACK, 1, 0xFFFF00); If you want to change the selection foreground color, then try:

Where did System.Design go?

跟風遠走 提交于 2019-12-20 19:44:08
问题 I am making a C# project in which I am using ScintillaNet, and it says: The referenced assembly "ScintillaNet" could not be resolved because it has a dependency on "System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. I tried adding a reference to System.Design , but

Where did System.Design go?

好久不见. 提交于 2019-12-20 19:44:07
问题 I am making a C# project in which I am using ScintillaNet, and it says: The referenced assembly "ScintillaNet" could not be resolved because it has a dependency on "System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. I tried adding a reference to System.Design , but

Scintilla fold margin icons

99封情书 提交于 2019-12-13 18:41:21
问题 The following code I use sets a Scintilla window for folding: local SCI_STYLECLEARALL = 2050 local SCI_SETMARGINMASKN = 2244 local SCI_SETMARGINSENSITIVEN = 2246 local SCI_STYLESETFORE = 2051 local SCI_MARKERDEFINE = 2040 local SC_MARKNUM_FOLDEROPEN = 31 local SC_MARK_BOXMINUS = 14 local SC_MARKNUM_FOLDER = 30 local SC_MARK_BOXPLUS = 12 local SC_MARKNUM_FOLDERSUB = 29 local SC_MARK_VLINE = 9 local SC_MARKNUM_FOLDERTAIL = 28 local SC_MARK_LCORNERCURVE = 16 local SCI_MARKERSETFORE = 2041 local

Get visible lines in Scintilla.NET component

為{幸葍}努か 提交于 2019-12-13 04:46:19
问题 How can I get the first visible (top) and last visible (bottom) lines number for Scintilla component in C#? For example, if I scroll the text and I am able to see lines 5-41 (no folding, it is the number of lines which are shown by the component at the moment; the rest, you have to scroll to them), how do I get those numbers programatically? 回答1: If you ever want to find out how to do something with Scintilla, your first stop should always be the core Scintilla Documentation. It is

How to move the cursor to a specific position in a specific line in ScintillaNet control?

血红的双手。 提交于 2019-12-12 04:39:40
问题 I need to move the cursor to a desired position of a certain line by code, any ideas which could get that to work will be appreciated. 回答1: Is this what you are looking for? SCI_GOTOLINE(int line) This removes any selection and sets the caret at the start of line number line and scrolls the view (if needed) to make it visible. The anchor position is set the same as the current position. If line is outside the lines in the document (first line is 0), the line set is the first or last. Taken