Flex Builder 3: syntax coloring, add keyword - flexbuilder

I wish to know where I can add Keywords for the syntax coloring in Flex Builder - i need to extend it a little for my own sanity.

Window > Flex > Editors > Syntax Coloring
If you are looking for sanity when building Flex apps try flashdevelop (flashdevelop.org)

I don't think you can. I haven't been able to find anywhere in the settings or in the files installed with the app where you can change the list of keywords.
As the other poster said, try FlashDevelop. I like it a lot more than FlexBuilder.

Related

dev c++ doesnt highlight syntax mistakes and errors

I'm pretty new to coding and just moved to dev c++ and it never notifies me when I write something wrong or if it doesnt make sense. When I was using visual c++ the second I wrote something wrong or if a library was missing it would highlight it and if I hovered over it it would give me an error message....is there anyway to get that with dev c++?
Thanks in advance
According to this pdf
http://www.apeg.ac.me/nastava/Introduction%20to%20DevC-%20IDE.pdf
The editor highlights with different colors keywords and other elements of the C language. The classic scheme uses:
Light blue for comments
Green for included libraries
Red for text strings
Bold black for C keywords
As long as you are using the classic scheme then your errors should be obvious if they do not show up with the expected syntax color. You can check in Tools > Editor options >
Syntax > Color Speed Settings > Classic
I would also expect you are able to tweak these how ever you want in the Tools > Editor options > Syntax area. I am not sure what version you are using as you did not state it.

Vim isnt highlighting basic types in c/c++

I have recently started using vim and i see my syntax files are located in /usr/share/vim/vim74 (I'm on linux Mint) and my c.vim seems to make the basic things like int and double keywords however when I edit any c or c++ files none of the types are highlighted however some things like const are highlighted. I am not sure why this is happening. Can anyone help me out?
To check whether the syntax parsing works as expected, check (when editing a C / C++ file) with
:syntax list
that those keywords (like int) are defined. You'll also get a preview of the highlight coloring there. Alternatively, the colors are shown via
:highlight
To change those, you have to switch to another :colorscheme or edit / augment the current one.
For advanced troubleshooting, I recommend the SyntaxAttr.vim - Show syntax highlighting attributes of character under cursor plugin.

How can I configure Emacs to highlight C++ that violate a detailed code style?

I've been researching existing C++ code style tools and have yet to find any packages which will allow me to highlight sections of a file which break a detailed code style configuration. While there seem to be several options for basic code style settings (what should/shouldn't be indented, line length > some threshold, etc), other issues do not seem to be addressed. For context, I'm hoping to be able to recognize when I do the following:
{ on same line as function definition (should be next line)
{ on next line after if statement (should be same line)
no space between ) and {
no space between comparisons (should be a == b instead of a== b,a==b, etc)
consecutive new lines
type *var_name or type * var_name instead of type* var_name
and so on...
This style is heavily enforced on my team, and I am having difficulty minimizing inconsistencies. I'm looking for either an existing emacs tool which allow me to customize these settings extensively, or suggestions on how to create an emacs package myself identifies these errors.
As Noufal suggests, Flymake is one option.
Another is Flycheck. I switched from Flymake to Flycheck a few years ago and haven't looked back. Flycheck supports a large number of languages and tools, and seems to require less hand-holding than Flymake.
From its GitHub README:
Features
Supports over 30 programming and markup languages with more than 60 different syntax checking tools
Fully automatic, fail-safe, on-the-fly syntax checking in background
Nice error indication and highlighting
Optional error list popup
Many customization options
A comprehensive manual
A simple interface to define new syntax checkers
A “doesn't get in your way” guarantee
Many 3rd party extensions
For C and C++ code, Flycheck supports Clang and Cppcheck out of the box, and there is a plugin for Google's C++ style guide as well.
And of course you can add your own checkers if you wish.
If you can configure your tool to emit output in the format that can be understood by flymake, it should be able to do it.
Many tools such as gcc itself and others do this so that flymake works.

Syntax highlighting in blog like in Sublime Text 2

I have blog and I want to show codes on the sublimetext editor like that also I want to choice language and it changes color according to the language.
How can I do that?
You can use ExportHtml sublime plugin to export syntax highlighted code to html and paste it in your blog.
Perhaps take a look at:
http://code.google.com/p/django-syntax-highlight/
It is not 'embedding SublimeText' as per your question, but seems to provide a library that provides some decent syntax highlighting functionality. It uses http://pygments.org/
Sublime Text 2 is not a Javascript editor - you cannot embed it in webpages.
For edit - what you can embed:
ACE http://ace.ajax.org/
And some more: http://en.wikipedia.org/wiki/Comparison_of_JavaScript-based_source_code_editors
For view - syntax hihglighting
Use Google code prettify http://code.google.com/p/google-code-prettify/

vim ctag leading to the wrong definition of fun

I'm using vim's ctag to navigate through c++ codes.
in many cases it's working all right.
but there're some errors when:
vector<int> v;
v.push_back(10);
when i'm navigating from the "push_back" here, it brings me to /usr/include/c++/4.4.7/bits/basic_string.h 's push_back()
I'm wondering if it's a bug of or drawback of vim/ctags ?
thansk!
Vim's tag navigation is not syntax-tree-aware. By default it jumps to the first matching tag from the tags file.
ctags just jumps to first to first matching tag: "push_back()". It does not know that type of "v" is "std::vector". The only way to fix this problem is not to use ctags.
I tried different vim plugins, but most of them are not working correctly or not working at all for c++.
There are plugins clang_complete and YouCompleteMe, that use clang C++ compiler to generate syntax tree. They are for autocompletion, but they also provide functionality to navigate in c++ code.
YouCompleteMe is much faster then clang_complete, but I think it is more difficult to install and configure it.
https://github.com/Valloric/YouCompleteMe
https://github.com/Rip-Rip/clang_complete