text-editor

Ace Editor (javascript): Triggering a tab press event for Ace Editors event handlers (not just inserting '/t' or spaces)

删除回忆录丶 提交于 2019-12-11 13:39:13
问题 I am using Ace Editor to build a code replay program. I store all the keys pressed when you type code, and then I replay them in Ace Editor. I have finished storing and replaying all keyboard/mouse input, but am having issues replaying tab presses. Ace Editor handles tabs within a textarea DOM. The default behavior for a textarea when tab is pressed is to move to the next DOM, so I know they are using preventDefault() and using their own handler in order to allow softTab (insertion of 1,2,3,

Use alternate syntax highlighting in middle of TextMate2 comment

被刻印的时光 ゝ 提交于 2019-12-11 11:57:44
问题 By the very nature of a comment, this might not make sense. On the other hand, what I'm trying to achieve is not too different from an escape character. As a simple example, I want # comment :break: comment to show up more like like #comment "break" # comment would, but without the second # , everything is on the same line, and instead of quotes I have some other escape character. Although, like quotes (and unlike escape characters that I'm familiar with [e.g., \ ]), I intend to explicitly

Mono.TextEditor highlight line

≡放荡痞女 提交于 2019-12-11 11:33:13
问题 I am making a pascal code editor in Mono in MonoDevelop. I am using Mono.TextEditor as a code editor widget. However, I cannot find how to highlight a line in the widget. After compilation, I collect line numbers where errors occur, and so I want to highlight them in red. I found Mono.TextEditor.LineBackgroundMarker which seems to relate to what I want to do, but I cannot find where and how to use it. Another option I was looking into was ViBuilder, but I don't even know how to use that. I

Which DataType should be used for Editor & File and image browser

我只是一个虾纸丫 提交于 2019-12-11 09:54:15
问题 Which datatype should be used in MSSQL database with an MVC application for the following fields as on the following components? http://demos.telerik.com/aspnet-mvc/editor/index Editor & File Image browser 回答1: In my application I sotre image as base64string hence, nvarchar(max) is the data type i used. The advangage of this is that you can pass based64String image in JSON object from or to website. To convert image to based64string public static string ToBased64String(this Image image,

Is it possible to change backround color of editor and autocomplete tooltips in Visual Studio?

纵然是瞬间 提交于 2019-12-11 05:57:00
问题 I changed color scheme for Visual Studio, setting a background color to black. Also I use Visual Assis to enhance color syntax. Now code looks great, but autocompletion list and editor tooltip are shown on the default white background. WIth new color scheme it looks awful. In Completion list and Editor tooltip I can't change enything except font size - colors are disabled. Is it possible to change colors anyway? I use VS 2008. 回答1: Resharper has a different looking Intellisense and Editor

Eclipse e4 RCP SourceViewer syntax coloring

我怕爱的太早我们不能终老 提交于 2019-12-11 05:18:03
问题 To implement syntax coloring in an eclipse e4 RCP application, I have created a basic plugin project with a Part including a SourceViewer control. public class SyntaxColoringTest { /** The SourceViewer control to create the editor. */ public SourceViewer sv = null; @Inject public SyntaxColoringTest() { } @PostConstruct public void postConstruct(Composite parent) { IVerticalRuler verticalRuler = new VerticalRuler(10); OverviewRuler overviewRuler = new OverviewRuler(null, 20, null); sv = new

Text Editor which tells the index of the cursor position

混江龙づ霸主 提交于 2019-12-11 04:56:31
问题 I need a text editor which tells me the position of the cursor (so I can determine ranges of text to then load into strings). Unfortunately the text editors ive tried (TextWrangler, Aquamacs, EditPad) only tell me the line number the cursor is on, and the character index on that line. I need the index from the beginning of the file to that point - ie the absolute index. Any recommendations for an editor (or a technique im missing in the editors ive already got) which can tell me this? 回答1: If

how notepad++ picture extended chars

吃可爱长大的小学妹 提交于 2019-12-11 04:53:31
问题 I'm working with binary data and want to find out that is wrong. I use notepad++ to preview binary, I have set View->Show Symbol->Show All Characters to see all chars, but there still exists some chars I cannot identify, e.g. â©ÎÅ . The problem is that ASCII has strong standart for number 0 to 127, extended ASCII may be picturing in many ways, so I have problem with chars what represents numbers 128 to 255. Is there any table of notepad++ extended chars or some option to make it show symbol

VB.NET - RichTextBox - Apply formatting to selected text

馋奶兔 提交于 2019-12-11 03:08:08
问题 I have a RichTextBox control on my form. I also have this button, labeled Bold , that I want, if someone selects text in the RichTextBox , then presses the button, the selected text turns bold. Any way to do that? Simple, everyday task for end users. Thanks. 回答1: A variation on the above that takes into consideration switching bold on/off depending on the currently selected text's font info: With Me.rtbDoc If .SelectionFont IsNot Nothing Then Dim currentFont As System.Drawing.Font =