code-editor

Eclipse Plugin Development: How to access code written in the eclipse editor

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 20:15:14
I'm making an Eclipse plug-in that requires access to code written in the Eclipse editor. I've followed the process mentioned in the link. Accessing Eclipse editor code But it's showing filepath instead of code in the message box. The getEditorInput() of IEditorEditor class isn't doing what it should do according to the link. Here's my code. Please help me find what i'm doing wrong. public Object execute(ExecutionEvent event) throws ExecutionException { IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event); IEditorPart editor = ((IWorkbenchPage) PlatformUI.getWorkbench()

How do I add intellisense to my application?

别来无恙 提交于 2019-12-04 19:32:39
问题 We have a proprietary macro language in one of our products, edited through our Windows software. I would like to add intellisense, but I have no idea how to go about this (at least not without completely reinventing the wheel). Is there any sample code or 3rd party package that can at least get me started? It doesn't have to be free. The application uses .NET, written in C#. 回答1: There is a CodeProject article about adding intellisense to your own applications: DIY Intellisense It should

Issues adding github gist to my blog(using Google blogger)

纵饮孤独 提交于 2019-12-04 13:14:30
问题 I'm trying to add a gist to my blog to see how it works and use it to share some code related blogs going forward. I've followed the steps mentioned form this blog, but I'm not able to get it to work. I don't know what I'm missing, any pointers on what I could be missing would be really appreciated. My HTML Editor of blog related code looks like this:- <div dir="ltr" style="text-align: left;" trbidi="on"> <div dir="ltr" style="text-align: left;" trbidi="on"> Hi<br /> <br /> test<br /> <br />

How to display full documentation of a method as you type in VS?

我的未来我决定 提交于 2019-12-03 15:49:01
问题 The title is pretty descriptive... Is there any extension that let me see FULL documentation of the method I'm typing ? I would like to see the documentation as I can see it in Object Browser with description of parameters and everything not just some "summary". Of cause with an option to see all overrides. It may be part of intelisence or I don't know what it does not really matter. 回答1: I'm sorry to say, but the answer is no . I can say this with confidence because I myself spent many, many

How do I add intellisense to my application?

流过昼夜 提交于 2019-12-03 12:35:41
We have a proprietary macro language in one of our products, edited through our Windows software. I would like to add intellisense, but I have no idea how to go about this (at least not without completely reinventing the wheel). Is there any sample code or 3rd party package that can at least get me started? It doesn't have to be free. The application uses .NET, written in C#. There is a CodeProject article about adding intellisense to your own applications: DIY Intellisense It should give you a good start. There are also open source packages that you can dig into if you really want dig deep

How to load ace editor

﹥>﹥吖頭↗ 提交于 2019-12-03 10:02:54
I am trying to use the Ace code editor library ( http://ace.ajax.org/ ), but im having trouble. According to the embedding guide, this should load the required js files from Amazons CDN. <script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script> However it fails, in Chromes console it shows: Could not load worker ace.js:1 DOMException {message: "SecurityError: DOM Exception 18", name: "SecurityError", code: 18, stack: "Error: An attempt was made to break through the se…cloudfront.net/src-min-noconflict/ace.js:1:76296)", INDEX

How can I prevent the “You have mixed tabs and spaces. Fix this?” message?

懵懂的女人 提交于 2019-12-03 03:23:35
问题 Any time I paste code into my .cs file, I get the dreaded "You have mixed tabs and spaces. Fix this?" message. It has three options: Tabify Untabify Don't show again I first tried "Tabify" a few times, until I was finally fed up and selected "Don't show again"; but that was a psyche - I still get it. I even tried "Untabify" but to no avail. Is there some setting I can tweak to prevent this re[o]curring problem? VisualStudio2013 tabify untabify 回答1: Sounds like you have the Visual Studio

How to remove tab indent from several lines in IDLE?

て烟熏妆下的殇ゞ 提交于 2019-12-03 02:38:47
问题 If you want to indent several lines in Python IDLE you just mark the lines and hit Tab. But what if you want to remove the indent from several lines? Shift+Tab does not work for that in IDLE. 回答1: If you're using IDLE, and the Norwegian keyboard makes Ctrl-[ a problem, you can change the key. Go Options->Configure IDLE. Click the Keys tab. If necessary, click Save as New Custom Key Set. With your custom key set, find "dedent-region" in the list. Click Get New Keys for Selection. etc I tried

How can I prevent the “You have mixed tabs and spaces. Fix this?” message?

点点圈 提交于 2019-12-02 16:53:48
Any time I paste code into my .cs file, I get the dreaded "You have mixed tabs and spaces. Fix this?" message. It has three options: Tabify Untabify Don't show again I first tried "Tabify" a few times, until I was finally fed up and selected "Don't show again"; but that was a psyche - I still get it. I even tried "Untabify" but to no avail. Is there some setting I can tweak to prevent this re[o]curring problem? VisualStudio2013 tabify untabify Anthony Chu Sounds like you have the Visual Studio Productivity Power Tools 2013 installed. Go into its settings and turn off "Fix Mixed Tabs"... Tools

How to remove tab indent from several lines in IDLE?

无人久伴 提交于 2019-12-02 16:12:45
If you want to indent several lines in Python IDLE you just mark the lines and hit Tab. But what if you want to remove the indent from several lines? Shift+Tab does not work for that in IDLE. If you're using IDLE, and the Norwegian keyboard makes Ctrl-[ a problem, you can change the key. Go Options->Configure IDLE. Click the Keys tab. If necessary, click Save as New Custom Key Set. With your custom key set, find "dedent-region" in the list. Click Get New Keys for Selection. etc I tried putting in shift-Tab and that worked nicely. If you're using IDLE, you can use Ctrl+] to indent and Ctrl+[ to