This question is pretty straightforward.
I have a bunch of code that I want to put into Microsoft Word. Naturally, I copied and pasted it from Flash CS6, but the colours weren't part of the formatting. It's essential that the colours stay so I can differentiate between keywords, variables, classes, etc.
Is there a way I can do this?
NB: By the way I'm talking pages upon pages of code, I've done a little searching and all solutions I've found so far are to do with code snippets, or other languages.
Try this online tool.
Simply paste your code into the box and from the drop-down list choose C# as your code language (is nearest to AS3 for syntax formatting, but you could experiment with the other options).
Now click Show Highlighted and a new window will have the code with colour formatting. Just select and copy-paste that into MS Word.
Related
I've been building a webite in Brackets, which is what I learned web development with. I decided to make the switch to VS Code, but when I dragged my folder over it didn't work. I was expecting to have my code just appear, but instead it says "The file is not displayed in the editor because it is either binary or uses an unsupported text encoding. Do you want to open it anyway?"
Then, if I click yes, it gives me a long line of cryptic digits that look like question marks inside of hexagons.
Please let me know what I can do to tranfer over my files. Apologies if this is a simple answer, I'm very much a beginner here.
When coding in VSC, no recommendations or color coordinations appear.
They were on before, and I can't seem to figure out the problem. I tried restarting, and with other languages, both appear, but with HTML and CSS they don't. I know HTML isn't actually a language, and so I downloaded the Live Server extension to run my code.
This is more of a small annoyance than anything else, but I would like it solved as I'm pretty new and I don't know all of the text options and colors there are.
firstly you will need to save the file out in the correct format extension (e.g: save index as index.html / style as style.css ) within your folders, VSC should pickup the language and syntax you are using. If this still doesn't work, on the far bottom right panel of VSC you can select the language you are using.
By default, new documents are displayed as plain text until they are changed or saved out in the correct format.
I'm developing a web scraping tool in Python, and I need to get intimately acquainted with the functions of various HTML tags on certain sites. Unfortunately, the "view source" that Chrome, Firefox, and Safari offer does not output very well formatted HTML source code -- it tends to place a huge number of tags on the same line. Do the browsers offer any plugins that may be able to clean things up a bit, or do I need to get/develop some kind of tool in Python that takes dirty HTML as input and outputs cleanly formatted HTML?
Since I work primarily with Chrome, the best examples I can think of are Code Formatter (Chrome)
This isn't automatic; you have to copy and paste the entire page into the app. Also the app window is small (this unalterable to my knowledge), but relatively effective.
...and JavaScript and CSS Beautifier
Much more effective and clean, but only works, as the title suggests, with .Js and CSS.
With Firefox you can select (highlight - I am writing for beginners also) the text, and once it is selected, release the left mouse button and right click within the selected area and choose "View selection source." You can then copy the highlighted text and paste it.
My composite example:
View selection source
We are having Multiple PDF which have account tables and balance sheet within it. We have tried many Converters but the result is not satisfactory. Can anybody please suggest any good converter that would replicated the contents of PDF to Exact structure in HTML. IF any paid Converter is there please suggest me .
This is the PDF we want to convert and Show in html "http://www.marico.com/html/investor/pdf/Quarterly_Updates/Consolidated%20Financial%20Results%20-%20Q3FY11.pdf"
Have you looked into this? http://pdftohtml.sourceforge.net/
It's open source as well, so it's free and can be modified if necessary.
There's even a demo showing the before PDF and the after HTML version. Not bad if you ask me.
If you're having issues specifically with tables in PDFs, perhaps the issue are the table themselves and whatever program is being used to generate them. Not all PDFs are created equal.
ALSO: Be aware that all PDFs that I've created and come across over the years have had lots of issues when it comes to copy/pasting blocks/lines of text that have other blocks/lines of text at equal or higher height on any given page. I think Acrobat lacks the ability to define a "sequence order" of what block is selected after what (or most programs don't use it properly), so the system sorta moves from a top-down, left-to-right way of selecting content.....even if that means jumping over large blank areas or grabbing lines from multiple columns at once when you wouldn't expect it. This may be part of your tabular data issue. Your weak link here is the PDF format itself and I think perhaps you may be expecting too much from it. Turning anything into a PDF is pretty much a one-way street, especially when you start putting lots of editable text into it.
Have you tried http://www.jpedal.org/html_index.php - there is also a free online version
I have a course work for which I have to make a (as advanced as possible) WYSIWYG web page editor in VB.NET (2010). It should have a visual editor with drag-drop support for several elements such as anchors, images, tables etc., and it should generate HTML based on that structure.
I don't know where to begin though.. I have some experience with vb.net, I made a tabbed notepad vaguely following a tutorial, but I don't know how to make this drag-drop thingy in a richtextbox.
I've searched for a tutorial, but most of them are just too simple - a text editor with browser control rendering the HTML.. I found one really nice and advanced, but it's in german :-|
So, if anyone knows any resources / tutorials I could use to start things I'll appreciate it.
I won't start with a richtextbox. Do you want to realize it in WPF or Forms (I would recommend WPF)?
In WPF there is relative simple a Drag-And-Drop behavior for elements (see http://msdn.microsoft.com/en-en/library/ms742859.aspx).
I would start with some simple elements (e.g. TextBoxes) and drag-drop them from some sort of toolbox onto a grid with fixed columns and rows (and later use a canvas). And then generate the HTML-Code from that.
In general, most of the WYSIWYG browser based editors are written in Javascript using an editable DIV.
A good example is tinymce:
http://www.tinymce.com/
Download, including full source code, is available here:
http://www.tinymce.com/download/download.php
You can use CKEditor. Its one of the best WYSIWYG editor i have worked with. Its highly customizable and opensource.
Given below is the URL for the website:
http://ckeditor.com/