autoformater and symbols like ñ - formatting

In Aptana ( Eclipse 3.7.2 with Aptana Studio plugin 3.1.3 ) when i activate the autoformater ( ctrt + shift + f ) and a css file contains a letter ñ , the formatter puts a newline, how change this behavior ?
In the line with the symbol, aptana marks Syntax error: unexpected token ñ.

You can use scape character for add other characters like ñ with \ñ for example.

Related

Search for non-printable characters (Carriage Return, Tab, etc.) in code editor of IntelliJ?

In the code editor of IntelliJ 2018, using either menu item:
Edit > Find > Find…
Edit > Find > Replace…
…how can I find invisible (non-printing) characters?
I am referring to characters such as:
CARRIAGE RETURN
LINE FEED
INFORMATION SEPARATOR ONE
Enabling "Regex" checkbox, you can use the full regex syntax. I was able to search for spaces with \u0020 and for LF with \x0a.
Carriage return and line feed match \r and \n respectively.
Arbitrary Unicode character syntax: \uFFFF, where FFFF is a hex Unicode character code.
Arbitrary ASCII character syntax: \xFF, where FF is an ASCII hex code.

Any keyboard shortcut for intelliJ to replace space with underscore in selected text?

The way we can use Cmd + Option + U to make text upper case or lower case; is there any shortcut to replace spaces with underscores with selected text in IntelliJ Idea?
Like: HELLO WORLD to HELLO_WORLD?
Use this unofficial plugin:
https://plugins.jetbrains.com/plugin/2162-string-manipulation
Installation:
Apple + Comma
Search for plugins
Browse Repo
Search for String Manipulation
Click install

IntelliJ double click to not treat hyphen as word separator

I'm using IntelliJ 14.1.1 with the Cursive Clojure plugin.
Is there a way to configure IntelliJ to not treat hyphens (-) as a word separator when double-clicking?
The use case is that I want to select a hyphen separated symbol (e.g. foo-bar). I double click on foo and only foo is selected. I want all of foo-bar to be selected.
Unfortunately there isn't at the moment. There's an issue in the tracker for this (#55), I'll try to implement this soon.

Match the start of the file or a newline (Ragel)

I'm using ragel with C as the host language.
I can recognise a newline simply with '\n', but I need to recognise the start of the file as an alternative.
In other implementations of regex this could be given by \A or $, but $ is reserved for other purposes, '\A' maps to something else (alarm?) and \A gives a parser error.
I don't think there's an escape sequence for that. However, you can detect it by checking if Ragel's ts variable equals 0.
In text format You have 3 choice:
Old mac to nr 9 \n\r (and Commodore, Apple II, Microware OS-9)
Unices and new Mac OS X \n ( and BeOS, AmigaOS, MorphOS, RISC OS, Multics)
Windows uses \r\n (and DOS, OS/2, Symbian, DEC RT-11)
in Ragel defining end of line
endline = ( "\r" | "\n" )+ #{ increase_line_number; };
the start of line is begining (any - endline)

ADT 15.0: XML indentation formatting broken?

Running Eclipse 3.7.1.M20110909-1335 with the ADT plugin
Have upgraded from ADT version 12.0.0.v201106281929-138431 to version 15.0.0.v201110251216-213216
It looks like that the formatting of XML concerning the indentation size is broken in version 15.
Window|Preferences|XML|XML Files|Editor is configured with:
Indent using spaces
Indentation size: 2
Activation of Source|Format (Ctrl+Shift+F) gives 4 spaces indentation instead of expected 2 spaces
Worked as expected in previous version 12.
Not sure if maybe this is your issue, but under Preferences > Android > Editors I have a checkbox (unchecked by default) that says Use Eclipse setting for indentation width and space or tab character indentation (Android default is 4 space characters).