Converting from .asm to .s file (Windows/Intel) - mips

For my homework, I had to write a MIPS program. I'm on windows/intel machine and used notepad++ to write it, which doesn't have the functionality to save the file using a .s extension. Is there any way to save the file as a .s using windows?

On the Save As dialog, switch the "Save as type:" drop-down from "Text Documents (*.txt)" to "All Documents (*.*)" and type the full name of your file (e.g. "myfile.s").

Related

How can I reformat Source Code for files without file extension in WebStorm 2016.1.3?

How can I reformat Source Code for files without file extension in WebStorm 2016.1.3 ?
Example: I've a automated_generated_json_file_without_extension in one line and the name of the files are always different. I don't want to configure all these file names in "File Types" Dialog and register new patterns.
In Sublime you can change the file type at the right bottom corner, is there a similar function in WebStorm?
Unfortunately you cannot change file type of the file on the fly in WebStorm.
Possible workarounds:
Have a set of files (e.g. test.json, test.js etc) somewhere in a project where you can copy-paste this file content, reformat it there and copy it back.
Use "Scratch files" functionality (Tools | New Scratch File...) and then the same copy-paste content to reformat.

Why do we use file extensions if the content is just plain text?

From what I can see, a browser will display the information found both in .txt files or .html files, properly displaying html tags inside them. My g++ compiler won't stop segnaling errors in a .lua file containing lua code, but it will still try compiling it without caring about the extension, while the lua interpreter won't even open a .cpp file, even if I wrote a perfectly working lua program inside.
So why do we need file extensions if the content is in all cases text? As I said, I could write a C++ program in a file with an arbitrary extension and it will properly compile it, so what are extensions even for?
On many systems you can associate extensions with certain applications. For example a double click on a .cpp file will open it in a C++ IDE while a double click on a .txt file will open it in the default text editor.
Another example: Most text editors have syntax highlighting that depends on the extension.
There are probably many more cases where the extension is useful as an indicator for the file type. Of course this is nothing but a convention, but one that has been established for decades.

Convert Notepad++ user defined language to html

I have created a user defined language using Notepad++. Now I want to convert this into html format. There are many free source tools available which can convert lets say rtf file to html but how can i convert this user defined language file into html?
Notepad++ allows me to save this file which is in user-defined language with any extension but the formatted text can only be viewed in notepad++.
Like if I save the file as draft.rtf, open the file in notepad++ the changes (formated text of user defined language) will stay but when I open the same file in Word the changes are lost!
A simple copy paste from notepad++ to Word also causes the text to lose its user-defined language specifications. Kindly help.
Check the NppExport plugin, it will export your file with the syntax highlighted as html (i think) and then you can use that somewhere else
http://www.addictivetips.com/windows-tips/nppexport-for-notepad-export-highlighted-code-in-html-rtf-format/

Unable to save a file as JSON?

Am in the need of creating a file with a extension of JSON(Json file). But I'm unable to create. When I try save a file with json extension like file name followed by a .JSON it is takes as,
filename.JSON.txt
How to solve this?? Am using windows 7(32 bit) OS. Please suggest something ???
When you Save As..., make sure the "Save as type" dropdown contains "All Files" and not "Text Documents(*.txt)". That way it won't add the extension '.txt' but the extension you add.
You have to delate the extension .txt to get a JSON file.
I also struggled with this, but in the end it was quite simple...
In the TextEdit menu, go to "Format" and choose "Make Plain Text".
Then, save the file and write the filename with the .json extension. Pop-up dialogue will ask if you want to save with .json or .txt, just choose .json to confirm!

Trouble opening .csv files on my Mac

I am trying to open a .csv file in my Mac, using Excel 2008. Currently, every time I try opening the file, my Mac defaults to OpenOffice.org 3. I never had this problem. I always used to be able to open csv files with Excel.
Where do I go to change the default spreadsheet program for opening csv files back to Excel?
Thank you.
CTRL+Click or Right Click on the CSV file, click on "get info" option. In the popup at the bottom under "opens with", select the application you want to associate with this file e.g. excel.
This works for changing the file associations for most files.