Whenever I use "input with type="date"" in Chrome, there is a strange comma on the left of the date input.
There is no such comma in Firefox and I cannot find any information regarding this.
Can anyone tell me how I can get rid of the comma or why it is there?
The value of the input is correct (no comma).
I only want to use the date input.
This problem seems to be related to how Google Chrome complies with region settings in Windows. Verify that your region settings have not been customized to display (for example) something like 'ddd, M/d/yyyy'
Open Control Panel
Click on Clock & Region
Click 'Region: Change date, time, or number formats'
Related
I recently found out about the new Chrome feature called "Text Fragments" that allows links to point directly to a certain text inside an URL and have it highlighted. For example:
https://www.nytimes.com/#:~:text=Magazine
But if I point to a work that appears multiple times, only the first instance gets highlighted.
Is there any way that I can ask it to highlight all occurrences of a given string?
From what I can tell, the spec only allows for highlighting the first instance found on a page. You can specify multiple strings, but they'll all always match to the first occurrence (as of Chrome 83).
The best I can think of is expanding the matching region such that each occurrence is a unique substring. For instance, on this page one could use something like:
#:~:text=highlight%20all&text=highlighted&text=it%20to%20highlight&text=for%20highlighting
And generate these URLs via javascript.
I found a website where a syntax like [URL]?s[]=MySearchTerm&s[]=MyOtherSearchTerm works:
https://www.ipwiki.de/arbeitnehmererfinderrecht:beschraenkte_inanspruchnahme?s[]=inanspruchnahme&s[]=Arbeitgeber&s[]=Diensterfindung
However, this syntax doesn't seem to work anywhere else, so it's probably not a feature of Chrome but a function of that website.
I have a project where my files are in "lisp-case" (hyphen delimited) and I would like to use the filename as a variable in a live template, but it must be converted to CamelCase first.
I found out that you can set the expression fileNameWithoutExtension() under "Edit Template Variables" and there is also a function called camelCase() which should be able to turn my filenames into CamelCase. But I cannot figure out how to combine those two. I tried doing camelCase(fileNameWithoutExtension()) but that does not work, unfortunately.
Is it possible to achieve this some other way?
camelCase(fileNameWithoutExtension())
It's a correct syntax.
Is it possible to achieve this some other way?
Please ensure that Skip if defined checkbox is checked for this variable.
If I try to wrap fileNameWithoutExtension() inside camelCase() and press enter to save the entry the window is closed but the change is not saved
It's an IDE bug (https://youtrack.jetbrains.com/issue/IDEA-132965 -- supposed to be fixed in current 2017.1.x version).
In any case: either press Enter before leaving the field ... or click on OK button straight away (you may then reopen this window to do further changes).
Also, when editing the field it's rendered like a select box which is kind of weird. Maybe it's a bug in this specific version. I'm on PhpStorm 10.0.4 for Mac.
Not a Mac user here .. but it is an editable drop-down box indeed (it lists all possible functions).
In Sublime I can double click whitespace in-between two characters in order to select just the white space, e.g. in:
$foo = 'bar';
Would result in the selection of:
$foo████████= 'bar';
However in PhpStorm it selects the entire line.
Is there a setting I can toggle so that whitespace can be selected with a double click in the same way I can double click a variable to select it.
This is currently not possible. There is an open issue requesting the functionality you describe on the bug tracker, you could vote for this and leave a comment that you would like to see this functionality added as well.
Apparently, according to the comments triple clicking used to work to get this done. Although that was posted in 2013 and I cannot reproduce this on the latest version anymore, so I figure they removed that somewhere along the way.
I have an html input field, type text, that is not a password or any type of sensitive information. It is used frequently to put in dollar values. Autocomplete by a browser is annoying because it comes up every time, gets in the way (for some fields this system has its own autocomplete so that's crazy and I disable it there too, though not on this one). The field just requires typing in a dollar value which is different almost every time so autocomplete isn't very useful.
I used the autocomplete="off" on this field.
Then the users mentioned that now when they hit back in their browser, then forward, the value is cleared out. I traced it to this, that's indeed what it does. Other fields keep their values just fine as dictated by the browser's behavior.
Now how to I allow this saving of the value, but disallow the actual autocomplete? This change that came along with autocomplete is unwanted for me. I also don't see it mentioned at all on the w3schools page for autocomplete, but it does it in Firefox and Chrome.
Thanks for any suggestions. The simple thing would be to just allow autocomplete again so I might end up doing that :/
You could keep autocomplete off but create a local storage value that persists that particular fields last value, you could trigger when the value changes. When the page is loaded you would then have a function that checks to see if the value is in local storage and if so populate that field.
Here is an article on using local storage - http://www.thomashardy.me.uk/using-html5-localstorage-on-a-form
<input type="datetime-local" name="partyDate" id="partyDate" >
The input field shows as dd/mm/yyyy, -:-- on my new Chromebook
My other computers also using Chrome browser see it in 12hr time, so it is something in the Chromebook settings.
The input field shows as dd-----yyyy --:-- -- (local OS (winxp) date settings set to dd/MMM/yyyy and 12 hour time)
Time settings in the Chromebook is not set to 24hr time.
I am not sure where else to look as I am new to Chrome OS.
I would prefer to fix this without having to replace the datetime-local input field.
Thanks
EDIT - by changing the Chrome language from English UK to English US I got back the 12hr time, which technically answers the question, but an extension question: is there a setting I can change to have it display 29-May-2015 rather than 05-29-2015 like good ol Microsoft lets me?
Seems the default language of the Chromebook is English-UK which defines how dates are displayed. By changing the language to English-US, dates in the browser are now showing in 12hr format