HTML editor in Aptana Studio 3 - aptana

Is there any choice (plugin, etc.) to get table with HTML tags like in Aptana 1.5?

This is a duplicate of How to add to Aptana helpful panel with snippets?
Short answer: no, there's no way to get this toolbar in Studio 3. But there are much better options using keyboard shortcuts, snippets or commands. Please read my answer on the duplicate question.

Related

Paste code in html editor

I need a tool where I can paste code and view it on a web page.
I tried TinyMCE 4.x. It works fine, but I found one problem: Indentation is not kept when I paste code from Visual Studio. I googled, but I cant find a solution to that,
I tried fckeditor a couple of months ago. I has a syntax highlighter, but if I recall correctly, it had the same problem with indentation.
I need the tool to help me with three things:
Write plain text
Paste code mainly from Visual Studio
Upload image
Most of the google hits are from 2009-2010, so what do I use 2013?
Should I abandon the 'famous' editors and go for something in this 4 year old article:
http://www.1stwebdesigner.com/css/16-free-javascript-code-syntax-highlighters-for-better-programming/
Im building this with asp.net 4.5
Or maybe just sum it up with one question: How did you get this kind of requirement up & running?
Thanks
Perhaps you want also to try other text editors like ckeditor (references: http://drupal.org/project/ckeditor, http://drupal.org/project/ckeditor), you may also like to use nicEdit which I'm also using right now (http://nicedit.com/), or you may want to use WYSIWYM Markdown Editor[wmd] (https://github.com/derobins/wmd, http://code.google.com/p/wmd/) like this one on stack overflow.. And another one Rich Text Editor [RTE] (demo is here: http://www.kevinroth.com/rte/demo.htm, main site is here: http://www.kevinroth.com/rte/).

How to design a text editor in QT?

I want to design a text editor in QT and planning to implement the following basic features,
1) Basic editing features like cut,paste,formatting,indentation etc.
2) Auto completion based on the context.(Based on some xml input file)
3) Syntax highlighting ( based on some xml input file )
Can you please suggest some approaches for the overall architecture/design?
How about:
Application Example
Completer Example or Custom Completer Example
Syntax Highlighter Example
All this things are stored in one single place, in you Qt SDK examples
This post is in 2015. NO DEAD LINKS
As #mosg mentioned.
In the menu bar. Go to Help > Index:
and in the search field look for:
Application Example
Completer Example
QSyntaxHighlighter
That would help you to begin.
If using Python is an option for you, you might find my Qt Text Editor example on GitHub useful. It uses PyQt5 (but you can also use PySide2) to implement a minimal text editor. Some screenshots:
It doesn't do formating, autocompletion or syntax highlighting but should still be a pretty good starting point. Maybe you can use QTextEdit and QSyntaxHighlighter to get these features.

Does anyone else have a bizarre Visual Studio 2010 code-editing problem when style="" attribute?

In Visual Studio 2010 (just upgraded), in standard Web Application projects (everything) I cannot finish writing <element style="">. Text input is impossible as soon as I get to style=" . Some kind of text editor bug.
Is there a fix?
EDIT: I've noticed this seems related to having horizontal/vertical Tab Groups open.
#rlb: There is no mention of anything related to this issue on that MSDN blog page...
#Joel: I have the same issue as you. Are you by chance using Resharper? I am, and my colleages who are not using it don't have this problem. Check out this page.
My work-around (until I find something better) is to copy the element with all its attributes from Visual Studio to a text editor, edit the style attribute in the text editor, then copy the whole thing back to Visual Studio, pasting over the still-selected element. Not exactly the most elegant, but better than not being able to edit inline styles — or giving up resharper...
My current work-around:
Format code (CTRL-K,D)
Undo
FIX: Installing Visual Studio 2010 SP1 has not fixed the issue.
EDIT: Formatting code does not always work. Perhaps it is a content encoding issue.

ASP.NET code formatting tool

Is there any tool for Visual Studio 2008 which can reformat ASPX code to make it more presentable (eg insert line breaks, format the lines so they wrap when necessary, etc)?
Thanks
Have you tried hitting Ctrl+K+D? Is this what you're referring to?
http://blogs.msdn.com/markhsch/archive/2008/01/10/visual-studio-tip-autoformat-your-code.aspx
To have Visual Studio fix it all up nice and tidy for you, select the text, hold CTRL and hit K followed by F (CTRL+K-F). What I usually do is do a CTRL-A to select all text then do the CTRL+K-F combo. Voila!
You can also do it from the menu Edit > Advanced > Format Document or toolbar.
alt text http://img148.imageshack.us/img148/8872/formatdoc2.png
There are actually a number of tools dedicated to code formatting that you might want to take a look at. Visual Studio's formatting capabilities are actually quite limited, and a lot of projects I have worked on use one of these external tools.
Good luck!
This may not be directly related to your issue, but DevExpress has a free product CodeRush Express that will not only help with tidying but has a great interface for refactoring. Here is a link to their demo video. I've used their products for a few years and they really up your productivity.
After 11 years there is still no tool that does it right. All online formatters I found dont cope well with ASP (.NET/Core/Blazor) tags, and VS20xx (even the latest 2022) doesn't deal with tags from custom controls, it formats all, except for sections within custom tags. In my case, 90% of the aspx files.

ASP.NET Editable Text Box with Syntax Highlighting

Here's what I'm trying to do. I'm looking for a WYSIWYG editor or just a plain text-box that will highlight HTML syntax (in ASP.NET). Basically, we have a CMS that allows you to mess with templates for various pages, but right now all of the editable HTML is in a plain, ugly, text box. Does anyone know of an editor that will highlight the synax and allow you to edit it? I've checked out Antipro SyntaxEditor, which seems to be a good highlighting solution, but it's just a highlighter, and not an editor.
Thanks!
You may need to combine tools. For example, SO combines Markdown with Google Prettify which handles the actual syntax highlighting.
Another option is CKeditor and they offer open source licensing.
I use FreeTextBox on my dasBlog site. It seems to work pretty well and has the capabilities you're asking for.
Update
Hmm... the version on my own site has a button the toolbar to do syntax highlighting, but that button isn't shown on any the demos available at the link I have gave you. Just know that it does work, but that you may have to play with the configuration some to get that working.

Resources