A text editor which allows configuration of text to select when it is double clicked - ide

From my experience, most text editors will, when double clicking a block of text, break the selected text by dashed lines but not for underscores.
E.g:
Double click the word 'text' of this sentence with underscores:
this_text_block
Double click the word 'text' of this sentence with dashes:
this-text-block
However, in different situations I have different needs. For example, when swapping between serverside code, html and javascript I often would like to vary the way text is selected.
Is there a text editor that allows such a distinction? Possibly one that switches depending on the type of code I am writing?

Related

vb.net I am trying to size a control (label, textbox, richtextbox) so that it is the smallest square that contains a given string

I need to present arbitrary text, which might include line breaks, in a square control with word wrap such that the square is as small as possible but sufficiently large to display the text in its entirety.
This is the closest I've gotten so far:
Load the text into a temporary rich text box, Rich, with BorderStyle = none
I increment the value of size, width=height=size until Rich.ClientRectangle.Width = Rich.Width.
If I could now extract the visual lines one by one I would be done, as I could then save the original string with appropriate line breaks for later display.
Visual lines are not, of course, the same as Rich.Lines array.
Any ideas?
Thank you.

How to ignore capitalization in Beyond Compare 4

BC4 is currently highlighting lines, even when they differ only by capitalization. I want to ignore those.
In Session Settings, I have UN-checked the box labeled "Character Case".
I have selected the "Minor" button (sub-text: "Ignore unimportant Differences").
I have ensured that the file type (.cs file) corresponds to the rules selected (as suggested here).
What else am I missing?
So, I got an answer straight from Scooter support community:
The character case check box only affects default text (text that isn't a string, identifier, comment, etc).
To ignore character case for non-default text, click the Edit Grammar button.
In the Grammar tab, select the grammar definition that matches the text that should ignore character case, such as Identifier.
Click the Gear icon.
Uncheck This element is case sensitive.
Click OK until you're back to the main window
For the .cs file type, in Session Settings, you will also need to uncheck the box labeled "Identifier" (this is in addition to selecting the "Minor" button as already stated).
This is not necessary for some other file types, such as "HTML", "MS Word Documents", "RTF", "XML", and of course "Everything Else". Simply selecting the "Minor" button will ignore character case.

Replace a blank before a table page break Word VBA

I uncheck "Allow row to break across pages" for a table's properties So, the table is shown on a new page to ensure that all the content is on one page, this works fine. But Word generates a blank space before the page break, I need to replace it with some text for a legal reason. I can't use a watermark or shapes because un Oracle BI Publisher only prints it on PDF and I need to export it to a docx.
The data is dynamic, so sometimes the text before the table and the text inside the table may change.
Current Version https://imgur.com/a/FTx0q
I need some like this https://imgur.com/a/ySitL
MS Office support told me that it can't be done with Word...
Maybe with VBA code?
Update
Thanks Cindy for your help.
I have a table into another table many paragraphs, checkbox etc and they are fitting on a new page. It's working.
I understand there isn't a page break.
It's Paragraph mark.
But what I need to do is insert a kind of mark, a text like XXXX,-----------, Instead of leaving "free space",
It's a requirement not change the font size or another text format.
For a legal requirement, some paragraph must fit on a new page and "blank spaces" replaced by a kind of mark.
I can't hard code it because in several cases not all the paragraphs or section in a page will be shown and I don't know by default when a new page is needed.
I am available to use macros or anything.
What you could do is insert a page-size table into a textbox in the page header and format the body text with a white background. The table will thus be hidden behind any text on the page, but not otherwise (provided you don't pad unused space with empty paragraphs, etc.).

Find all bold text and insert brackets before and after it

I'm newbie in VBA. I would like to find all bold text and insert brackets before and after it.
For example, Before: This is bold text
After: {This is bold text}
I'm using MS Word
You don’t need to use VBA; Word’s UI can do it directly with Find and Replace:
Leave the “Find what” box empty, but press Ctrl-B to specify Format: Font: Bold. (You can also click the More >> button to access the Format drop-down button and select Bold from the Font dialog.)
In the “Replace with” box, type ^& (or you could type the asterisk, use the Special drop-down to choose “Find What Text”, and type the 2nd asterisk).
Click Replace All.
Each instance of bold will be “replaced” by an asterisk, the found content (i.e. the bold letter(s)), and another asterisk.
Edit: The ^& is a special code to represent “Find What Text” as a Replace option in Find and Replace. The “Special” button presents a list of available options by name for both the Find and Replace boxes, and will insert the code when you make the selection.

Is there a functionality like Sublime's "HTML: Encode Special Characters" in Intellij IDEA

I'm looking something like the functionality given in Sublime Text by the shortcut (windows) Ctrl + Shift + P named "HTML: Encode Special Characters" but in IntelliJ IDEA. This functionality is able to transform this (as a example):
I'm a special character phrase "áéíóú ñ"
Into this:
I'm a special character phrase "áéíóú ñ"
Only by surrounding the specified text and pressing the shortcut key combination given above (again, in windows Ctrl + Shift + P).
Any thoughts?
UPDATE (07-04-2016)
By now, Intellij Idea support this feature natively (version 2016). You need to select the text you want to transform and (in OSX) Cmd+Shift+A and type "Encode" then select the action "Encode XML/HTML Special Characters"
The only caveats are that this only works (to my knowledge) in html strings.
It is not supported by IntelliJ directly, but a plugin called String Manipulation can help
From the plugin page:
Provide actions for text manipulation:
Un/Escape selected Java text
Un/Escape selected JavaScript text
Un/Escape selected HTML text
Un/Escape selected XML text
Un/Escape selected SQL text
Un/Escape selected PHP text
Trim selected text
Trim all spaces in selected text
Remove all spaces in selected text
De/Encode selected text as URL
Convert selected text to Camel Case
Convert selected text to Constant Case
Capitalize selected text
Encode selected text to MD5 Hex16
De/Encode selected text to Base64
Remove empty lines
Convert non ASCII to escaped Unicode
Convert escaped Unicode to String
Grep selected text, All lines not matching input text wil be removed. (Does not work in column mode)
Increment/Decrement selected text. Duplicate line and increment/decrement all numbers found.