Bolding text in autocomplete-light - django-autocomplete-light

I was wondering if there is a way to enable bolding of matching results when a user enter search text. Meaning: if I type appl, the autocomplete possible results should have this behavior.
apple
applecart
pineapple
Thanks

You can certainly do that, override choice_html or use a template autocomplete

Related

Text formatting in the description field of a JIRA, like in its comment areas

On JIRA tickets I can format comments entries at will : there's a toolbar with many choices for that, color, styles, underline...
But how do I get the same for description field ("descriptif" in French)?
Because what people read for explanation of a story/task/ticket, is mainly this content.
And currently the only thing we can do is to write on some descriptions "Look at comments to learn the purpose of this item/understand something" because a plain text is sometimes not enough to explain things.
This can be handled with renderers under Field Configuration Scheme.
Open Project settings -> Field Configuration.
Find the field "Descriptif"
There should be a text called "Renderers", click that. (In some version, it may be inside Edit)
Select "Wiki-style Renderer"
Click "Update" button.
And voila, it should be formatted like the Comment field.
Also, for further info you can check following Atlassian documentation.

Why does IntelliJ gray out types, fields and methods?

Can somebody explain why IntelliJ grays out types, fields inside methods and how to disable it? In my example words String, length, TEST and length() are all grayed out.
IntelliJ version 2021.3.1
This is syntax highlighting. It is grey for variable names, class names and member names, but can be changed. You can disable or change the style in the options.
Search for syntax highlighting in the options search field, find the entry for your language and modify it.

IntelliSense and enums

Consider this enum:
Private Enum colors
white = 0
black = 1
End Enum
IntelliSense shows black and then white while I'd prefer to see white and then black.
I don't care about the numbers.
Is there a way to customize the enum sequence of the items shown by IntelliSense?
You could prefix the values to create you custom list order.
if you type "colors." and then the TAB key it writes the first element (black). I'd prefer to put the most used one first for writing it faster.
Don't use TAB for completion then. Type colors.b then hit Ctrl+Space, and it'll either complete to Black (if it's the only member that begins with a B) or moves the autocompletion list selection to Black (or whichever alphabetically comes first), given you also have Blue, and Brown.
Using prefixes merely to control the sort order of members in the IDE's autocompletion list is a rather arbitrary reason for not using clear identifier names and resorting to funky prefixing schemes.
You're not writing code for it to be merely executed. You're reading code for it to be read, and maintained.
"It helps me type faster" is actively harmful if your successor has to squint and stop and think and try to make sense of your prefixing scheme - it's distracting, and slows down reading the code.
Programming is at a minimum, 80% reading, not writing. Learn to type faster instead of making reading harder than it needs to be.

IntelliJ Idea - search for a value in debugger

I need to know if it is possible to search for a value in debugger in IntelliJ Idea.
Example: you have a huge object tree and you need to find string variable that is set to same particular value.
Is there any way to do that?
Expand this tree so that you see all those strings, and start typing what you search for. The speed search should do the rest. To get to the next/previous results press the down/up arrows respectively.
Sorry to disappoint you, I don't think that this option exists.
The quick search will only look for values in expanded objects.
You can use some other tool to create a memory dump of this object, and look for your data there.
In the "Find action ..." menu, you select "Fully expand tree node" or use Numpad *

In Flex 3 Textarea, how to implement Text Search functionality

I wish to implement 'find...' functionality on the text present in mx:TextArea control. I could find the word using indexOf() function. I am finding difficult to:
highlight correct word
continue search using shortcut key say Ctrl+f (or F3)
wrap search functionality
Please let me know a way to overcome these issues?
The text to find can be highlighted using textArea.setSelection(). For reference see this link