ckeditor bullets open and close double quotes - ckeditor

With CKEditor I need to give the user keyboard entry of bullets, left-double-quotes and right-double-quotes.
I already provide the user with numbered and bulletted lists, they want stand-alone bullets.
When I say left-double-quote, I mean “ &#8220 equivalent.
When I say right-double-quote, I mean ” &#8221 equivalent.
The user wants the ability to type these characters directly into a CKEditor textarea.
How should I configure CKEditor to do this?

I solved this problem during the export to IDML by converting the quotes (""") to their respective ” and “ (&#nnnnn; equivalent) by evaluating the characters next to the quote.
So the user may input ", and I output the desired quote character in it's place.

Related

Escape special characters in reStructuredText Sphinx

For my documentation, I want escape special characters.
Example :
.. code-block:: terminal
$ php bin/console test:user
Press <return> for continue
For Sphinx, it's an external URL <return> and I want escape that.
Screenshot :
See Escaping Mechanism:
A backslash followed by any character (except whitespace characters in non-URI contexts) escapes that character. The escaped character represents the character itself, and is prevented from playing a role in any markup interpretation. The backslash is removed from the output.
To answer your question, you can use various markup techniques.
Escape the opening and closing brackets.
Press \<return\> for continue
Use inline literal markup.
Press ``<return>`` for continue
Use semantic markup with the kbd role:
Press :kbd:`<return>` for continue
IMO, the last option is the most appropriate for this situation. The first option is the least appropriate.

How to insert/copy+paste unicode whitespace into a text file using editors like Textmate?

I am trying to create a test csv file for a file cleaning script that is supposed to normalize all whitespace into "normal"/ "regular" whitespace character. The idea is I will insert a bunch of these oddball whitespace characters into this test file in some various locations.
Here are some sites that show these various and oddball whitespaces
https://en.wikipedia.org/wiki/Whitespace_character
http://jkorpela.fi/chars/spaces.html
I've tried to copy and paste from sources like that website but it seems like they always paste in as a normal space in Textmate. It could be that I am not copying what I think I am copying. In the past I've been able to copy and paste into Textmate special / unicode characters when I can clearly see what I am copying but with whitespace characters, I can't confirm since I can can't see it, so I am not sure if the problem is where I am copying from or that Textmate is converting it to the normal space when I paste it in.
If it is easier to use Textedit (the built in editor) or nano (command line editor) to do this I could use those. Or if there is another way other than copying and pasting that is better to get these into Textmate that would be an option.
I am on a MacbookPro running High Sierra MacOS.
If you have LibreOffice installed you can use the spreadsheet application to create these using their hexidecimal equivalent in 1 cell then doing a conversion using
=unichar(hex2dec(cell_ref_to_1rst_cell)).
Far less confusing and you can save the spreadsheet complete with comments as a handy reference. Then you should just be able to copy paste the cell with the unicode character when required.
If you’re using TextMate, various functions provided by the Unicode bundle could be helpful here (install via Preferences → Bundles → Unicode).
With this bundle installed you can use Insert Unicode Character ⌃⌥⌘I to insert a character by name. Search for “space” to get a list of all space characters, then simply click on the desired character (the full title of a character is shown on hover):
Of course once inserted all the space characters look almost identical. To identify them, use Show Unicode Name(s) ⌃⌥⌘U 6. This will display a tooltip showing the unicode of name of the character directly before the cursor (or the names of all selected characters, if a selection is active).
Also have a look at Show Character Inventory (press ⌃⌥⌘U and then select the command from the popup menu): This provides a convenient overview of all the characters in your document (or in the selected text, if a selection is active).

Automatic close quotes on Xcode

Is there any way to have a second double quotes placed automatically, when I enter the first one in Xcode? There aren't any settings in Xcode regarding placing a second double quote automatically when entering the first one (like in VSCode eg).
Let the autocompletion work.
i.e.Type print then autocomplete to print(items: Any...) then press "
or ^"
take a look at this https://developer.apple.com/library/content/documentation/IDEs/Conceptual/xcode_help-command_shortcuts/TextCmdsByType/TextCmdsByType.html

Notepad++ convert leading spaces to tabs upon entry

Very close to reverse of this question. I prefer coding with 2-whitespace indentation, but need to have files indented with tabs to align with project convention. What I would like to do is preferably automatically convert 2 spaces upon entry to tab symbol in Notepad++ and have the editor configured to tab length of 2.
A possible manual way for doing this could be Edit->Blank Operations->Space to TAB but this converts all of my spaces to tabs, even those of length 1 - which are, for example, spaces between function arguments, not just leading spaces.
In a perfect case scenario I'm trying to achieve formatting style as described in this question, but with typing just spaces and the editor taking care of the rest.
I'm on Notepad++ 6.0, but willing to upgrade if this helps
Let me complete the answer of Ari Okkonen to add a workaround to the problem commented by Sergii Zaskaleta of mixed tabs and spaces at the beginning of the line.
Settings->Preferences->Tab Settings->Tab size: 2 (if not already)
Edit->Blank Operations->Space to TAB (Leading)
Select a block of lines of text with the problem of mixed spaces and tabs. Press [Tab] and [Shift]+[Tab] to add and remove a tab from each line. In the process, the leading spaces had been converted to tabs.
A manual way that seems to work: After having edited the file before saving you may try (Works in Notepad++ v6.8.3):
Settings->Preferences->Tab Settings->Tab size: 2 (if not already)
Edit->Blank Operations->Space to TAB (Leading)

Sublime Text 3: Use double underscore "__" as word separator

I am trying to use a double underscore "__" as word separator in Sublime Text 3. That means, I want the following to be selected by a double click (selection indicated by brackets):
(bar_foo)
(hello)__(world)
Is that possible? My first guess is "no", because nothing is specified in Preferences.sublime-settings, but maybe one of you guys knows a way to make this work?
Thanks in advance!
PS: I already had a look at some questions here at SO (e.g. Removed hyphen from word_separators, ctrl+d no longer makes sense and Sublime Text and Hypens vs Underscores), but they don't answer this specific question.
Edit: In case you're wondering, I want this because I want to select variables like bar_foo_counter but I also want to use double underscores for my CSS modifier classes, like bar__inner.

Resources