Editing the font and style of the text in the instructions box in MIT Scratch project page - mit-scratch

The problem: How do I change the font in the instruction text box in an MIT Scratch project page. For example: make a line of text standout in bold. I believe it maybe done through editing the html code that is behind the box as I found a read only editor button that displays the code for the box. Unlike say a cell in Ipython you cannot simply surround text with tags. It seems such a simple problem but I have not found the solution yet.

Sorry, you can't do it.
The only thing you can do is to search for special font-characters and paste them in the Instruction text-box

For a day or two fairly recently this was allowed from a bug, but that bug was fixed and it's now impossible.

It's possible to change the HTML code, but that changes would only seen by you, and nobody else. There isn't a way to do it.

Related

VSCode Comments aren't inline

I use VSCode and I think its a great editor, but when I write a comment in html it drops to a new line under what I'm commenting which is really irritating.
If I comment a closing div I want it next to the closing div not under it.
I have uninstalled prettier but that made no difference.
Is what I want even possible in VSCode?
Any advise would be appreciated because I am so irritated that I am considering using a different editor (I'm on a Mac just in case it matters).
Thanks in advance.
This was a problem for me too, as were other new line / white space related HTML issues.
Assuming you are not using any formatters besides the native VSCode HTML language features (you said you uninstalled prettier, but you didn't mention whether you were using something else),
there is a setting HTML white space which you can set to preserve to leave your comments untouched.
Note that you may need to go into settings and check what is being used as the HTML default formatter

How to show code snippets in MS Word document as it shows in StackOverflow (scrollbars and gray background)

I am writing a document which intends to show code changes made in C# project, I am looking for a good format to show code snippet.
I like is the way StackOverflow site shows code snippet in its Questions and Answers (scrollbars and background color).
Can anybody guide me to create similar background/view to show code snippet in word document (mainly scrollbars).
I tried copying and pasting it from StackOverflow but the background does not appear.
I search and found this useful link but it does not change background color and don't have scroll bars How do you display code snippets in MS Word preserving format and syntax highlighting?
Here is what I did, first the results:
Go to stackoverflow copy some code, paste it in the word doc, you will get this gray box and etc.
Mark you text and go to:
Then you just write your code in any IDE, and past it into the word doc, mark it and set the style to code. :)
I could not comment on most voted answer for #AeroVTP, my rep is too low. But when you create a style, you can modify it by right clicking and then Modify..
Then on bottom left, click on Format -> Border. Then on tab Shading you can select whatever color you want as a background. Hope this clears things up :)
In Microsoft Word setup a text box (Insert > textbox) select the "format" tab, go to "fill" and choose the background color, set up a grey background, then use a monospaced font and here is your code-like text!
Here is a link to a Microsoft support page that can drive you better if you need: http://office.microsoft.com/en-gb/word-help/make-the-background-of-a-text-box-invisible-HA010337242.aspx?CTT=1
Fro scrollbars is a little more complicated, but here is someone who found a solution:
http://answers.microsoft.com/en-us/office/forum/office_2007-word/i-need-a-textbox-with-a-scroll-bar-in-my-word-form/534ced3f-f202-46b1-a4b4-3ecdabaa6899
From there you can find a lot of usefull guides for text formatting and general MS Word use.
Just insert a 1x1 table, style it as you want and paste the code from notepad++ (NppExport->Copy all formats to clipboard). Easiest solution.
Even though, it would be best if we write to Bill that he has to put some code styler for us developers in need to document our code via Microsoft word :(

Cut and paste from eclipse into MS word appears as large blue blob

This has been bothering me for years. Every time I cut a block of code from a java file in eclipse and paste into a word document, the text just appears as a big block of text. Does anyone know of a way to fix this?
This mostly happens with single line copying. Try copying by including the white-space from the above/bottom line.
Try pasting your code into a basic text editor first, like notepad; it should get rid of any attributes that are coming from where you cut from.
EDIT
See http://office.microsoft.com/en-us/word-help/control-the-formatting-when-you-paste-text-HA010215708.aspx and look for the "Keep Text Only" option.
This is well known problem. It is registered as a Eclipse bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=86503
Unfortunately, for today, this problem is not solved.

Is there a way to highlight code in NetBeans manually?

When I am figuring out someone's code in NetBeans, it occurred to me I could use a feature to mark code as 'understood', or 'suspicious', etc. while going through it. Is there any way to manually highlight or format code in NetBeans, the way it is done in Word? Some plugin maybe?
The alternative, i guess, is adding short comments everywhere, which is often not too convenient.
The Netbeans Collab plugin was pretty useful to share code and color them when you are sharing it through an XMPP server or discussing the code with someone.
You could use that to talk to yourself and color parts that you want to comment on.
You could surround sections of code with an editor-fold. To quickly do this:
Select the section of code you want surrounded
Press Alt + Enter
Select Surround with // <editor-fold defaultstate="collapsed" desc="comment">... from the hints popup
Enter your tag ie. "understood"
Press enter
This will give you a collapsible section of code that when collapsed will only show the tag that you've entered for the comment attribute.

Is there a way to copy code from the Eclipse IDE without the rich-text formatting?

Recently every time I copy a block of code from Eclipse and paste the code into TextEdit or a online forum using the code tags, I get the code with the rich-text or html formatting, so I have to copy into a text editor remove the formatting copying and pasting again, In the past this was not a problem I used to copy from eclipse and paste the code without any formatting at all just as plain-text, I dont know if I turn on a property or what I did for this to happen, any ideas how to fix this?
There is an Eclipse bug filed for this that can be voted for:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=45969
It has been open for 10 years though!
There are applications out there that think they can handle rich text but can't. So for those it looks like we'll have to carry on with "Copy-Switch to Notepad-Paste-Select All-Copy-Switch to final app-Paste" for some time yet.
Note: the rich formatting from a SWT editor seems to have always been available (bug 64498).
You could use "Edit, Paste and Match Style" in TextEdit.
From the Edit menu, choose Paste and Match Style,
or use the keyboard shortcut, Shift Option Command V.
The pasted text will pick up all the formatting from the character to the left of the flashing insertion point. This technique works in Mail as well.