Visual Studio Code (VSCode) - formatting Classic ASP files
As I still have some "legacy" web project written with Classic ASP, I am using VSCode to edit the code in them. The problem is that the native formatter (or even modern extensions for formatting code) don't know how to deal with .asp code files. I haven't been able to find a formatter extensions for that, and not surprisingly (because Classic ASP is a very old programming language, not used today). The question is if there is still some kind of a (magical) way of formatting this kind of code files... Just to be clear, I'm not talking about support for coloring the code or intellisense in this kind of files, because for that, there are a few handy extensions I've found and they are working great. I refer only to the need for formatting (indentation and such) the code in the editor.
See also questions close to this topic
Fold entire import section in JS file in VS Code?
A few weeks ago, I could fold the entire
Now this feature has disappeared. How do I turn it on? Was it an extension I've somehow lost? Did it disappear in a VS Code update?
what is the best way of running testNG in visual studio code?
I love vscode and quite recently I am trying to run some java based code in vscode. Apart from usuall java runner extension, I am struggling to run testNG(along with maven) based tests scenarios in VS Code(i am comparing with something like eclipse).
Did anyone has tried this? Can you please elaborate the process to make it simple?
how to fix an extension path installation in visual code studio editor
i'm setting up a new environment for my mobile app development but i'm facing a path extension problem on vscode wich i'm running out of solution against it and i clearly know that the solution would be basic .
here you'll have log message
to explain in which step i'm i ? i did install the extensions without errors but when i use them i get some errors on finding the path here you get an image of what error i'm getting enter image description here
thanks for any help!
.asp file downloading instead of execution, asp is installed
I have installed asp classic and isapi extensions through the server manager > add roles wizard.
However, when I navigate to an asp file in the browser, I am prompted to download the file instead of the code executing and rendering.
I have tried removing and re-installing asp classic.
I have ensured that my application pool can access 32 bit applications, I have ensured that i have a mime-type listed for .asp (application/asp).
I have ensured that I have a handler mapping set for
C:\Windows\system32\inetsrv\asp.dll(and also tried
This is for a windows server 2012 setup running on amazon ec2.
Internet Explorer 11 Delayed Session on Classic ASP with Ajax
In testing code which works otherwise correctly within Edge, Firefox and Chrome.
In Internet explorer 11, if you browse to a document, the session is set and can be called on the page, yet when the XHR request is called the session variable is apparently empty.
However, if you browse to an alternate document, this proceeds to show the correct session variable.
Only on the first article visit does the session variable not transfer across to the XHR request.
I have tried checking the SessionID, this appears the same across all pages/requests.
I have tried pre-setting the session variable in the global.asa to make sure the variable container is there at session start, with no difference in behaviour.
I'm not sure where to go from here as this appears to be an IE 11 issue, but know for certain 99% of our users have issued laptops with IE11 as their default browser.
Any help or pointers would be valued.
Is there a way to share session from classis ASP to ASP.net page?
I have Classic ASP application and added new pages in asp.net. We are not able to access session which is set in classic asp into asp.net page.
How to elegantly combine and format an Ruby array?
I have an array of countries and lists of states. When I see a state list, I want to combine that with the country just before it with parentheses.
["United Kingdom",,"United States", ["Arkansas","Massachusetts","Alaska"],"China",]
I want to format the array into
["United Kingdom", "United States (Arkansas, Massachusetts, Alaska)", "China"]
How to subtract two datetime values and get the output in HH:MM:SS format in SQL Server?
I want to subtract two datetime values and the output in HH:MM:SS format.
If the difference is more than one day, the days count needs to be added to hours.
I tried to concat the datediff outputs as mentioned below
select concat(datediff(hh, '2019-07-16 04:45:03.000','2019-07-17 19:38:13.000') ,':', (datediff(mi, '2019-07-16 04:45:03.000','2019-07-17 19:38:13.000') -(datediff(hh, '2019-07-16 04:45:03.000','2019-07-17 19:38:13.000')*60)) ,':', (datediff(ss, '2019-07-16 04:45:03.000','2019-07-17 19:38:13.000')-(datediff(mi, '2019-07-16 04:45:03.000','2019-07-17 19:38:13.000')*60)))
Can you tell me what mistake I made? Is there a better way to get the required output?
print statement including variable types
I recently installed python and VSCode on a new mac and I'm getting some unexpected output when printing to the console with python that I wasn't seeing before.
Firstly When printing strings I'm getting u'(string) instead of the string itself. On my old computer I never saw this.
Secondly when printing an array Python prints array([ 51.55, 68.74, 89.89, 101.96]) instead of just [ 51.55, 68.74, 89.89, 101.96] like it would before.
Thirdly I'm noticing that it also prints to the console '\n' instead of actually printing a new line.
I couldn't find anything on here pertaining to this question other than using formatting for unicode strings. It's just weird that this never happened on my old computer but it happens now.
heights = [1.55, 1.74, 1.89, 1.96] #standard python list weights = [50, 67, 88, 100] np_heights = np.array(heights) np_weights = np.array(weights) bmi = np_weights/np_heights**2 print(bmi, "\n")
produces the output:
(array([20.81165453, 22.12973973, 24.63536855, 26.03082049]), '\n')
[20.81165453, 22.12973973, 24.63536855, 26.03082049]