alexwforsythe / code-blocks Goto Github PK
View Code? Open in Web Editor NEWSyntax highlighting for Google Docs
Home Page: https://www.alexwforsythe.com/code-blocks/
License: MIT License
Syntax highlighting for Google Docs
Home Page: https://www.alexwforsythe.com/code-blocks/
License: MIT License
For users who use the RobotC language for Vex Robotics or equivalents, and for those who use Game Maker's custom language. This would be incredibly helpful.
Made a themes example list.
https://goo.gl/ggZEld
Could you please add rust language support?
If a selection is highlighted inline, all previously highlighted elements of the same parent element (e.g. paragraph) will lose their formatting.
When highlighting a java code. OR symbol ||
seems to disappear.
Thanks.
Hi, is it possible to choose the font-size?
Great work! Just thought I'd suggest adding syntax highlighting for Matlab :)
Extension stopped working. It is no more adding any color based on language and theme .
Please add assembly lang support
Could this add-on have an option to select display line number or Not.
Formatting should preserve the current font size or default to Normal text size if it's a mixed selection.
If you select a single word and try to format one after another, e.g. "you will need gcc if you want to make ", where gcc and make are the words to format, it simply won't work. The plugin resets the previously formatted word to the original.
It is a statistics scripting language
Great implementation and thanks
Some themes have invalid background color values in their CSS, which makes them fail to render in the document. This can be fixed by adapting them to hex using the same function we use for regular color values.
This isn't an issue, just a question:
If I format something as code, close the doc or do a bunch of other changes in the doc, how do I unformat the code block back to standard text?
Thank you!
It's not possible to paste a code snippet into an existing table.
For this language option, did you mean HTML?
When I press Tab, it inserts an un-deletable newline and I have to ctrl-z to delete it.
I have a block of cpp code that I'm trying to format with Code Blocks. When I format it, the color/font changes apply, but with no indentation. Not sure if this functionality hasn't been added yet or if I'm doing something wrong.
The theme drop down only shows up to solarized-dark, whereas the JSON source contains 11 more items.
OS: macOS v 10.12.6
Google Chrome: 61
What I did:
I have applied one code-block theme now want to change or remove the theme .
What i Tried
language : auto
Theme : monokai-sublime
Now I want to change the theme only so again select the text block and tried change theme
sometime it give error Can't insert here. below the preview box.
Will someone please specify how to apply or change theme or revert back to previous position of document
What I do right now is to copy the content within code-bloc , delete the code-block and paste the text with clear formatting option.
Please add ActionScript / .as support
I was looking at installing this for our development team, but our security team is nervous about exposing our Google docs to a third-party add on. Do you have any official policy in place stating that you don't store any text that you operate on? Thanks!
It would be useful to allow an option to specify the table padding so that when a background is not used one can line the text up in the code block with other paragraphs in the document.
When I try to select a portion of the text and click preview, I get:
Couldn't get theme.
I tried:
• reinstalling the add-on
• selecting a different theme
• changing the language
• selecting different text
The results are the same. Any suggestions?
Some blocks cause the browser to hang when the preview or highlight button is pressed. So far, I've only seen it with large blocks (multiple pages), but it might have to do with the content of the code itself.
When I try to use codeblocks, sometimes instead of highlighting properly, it deletes the last line of the code I'm trying to format. For reference, the snippet is in C++ and I'm highlighting with the settings language: cpp and theme: googlecode.
This would be super handy.
I used this really nice Google Docs addon yesterday for a highlighting a few code examples in documentation I'm writing. Alas, today it isn't working and returns the following error:
ScriptError: Invalid argument: .hljs{display:block;overflow-x:auto;padding:.5em;background:#f0f0f0}.hljs,.hljs-subst{color:#444}.hljs-comment{color:#888}.hljs-attribute,.hljs-doctag,.hljs-keyword,.hljs-meta-keyword,.hljs-name,.hljs-selector-tag{font-weight:700}.hljs-deletion,.hljs-number,.hljs-quote,.hljs-selector-class,.hljs-selector-id,.hljs-string,.hljs-template-tag,.hljs-type{color:#800}.hljs-section,.hljs-title{color:#800;font-weight:700}.hljs-link,.hljs-regexp,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#bc6060}.hljs-literal{color:#78a960}.hljs-addition,.hljs-built_in,.hljs-bullet,.hljs-code{color:#397300}.hljs-meta{color:#1f7199}.hljs-meta-string{color:#4d99bf}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}
I've also tried using the addon in an entirely empty Google doc, but that would not solve the issue either.
First, great plugin, thanks.
Second, In Java, I'm wondering if it's possible to have the plugin distinguish normal block comments;
/*
Block comment
*/
from Javadoc comments:
/**
*
* Javadoc Comment
*/
I think this is an important distinction because, at least in the darcula theme on IntelliJ, they are different colors:
Hello.
I've installed code blocks last night and it worked nicely. However, this morning the option to start the app is not there. I cannot open code blocks to keep working on my document.
Hi Alex,
Your addon looks great and usefull, can I ask you about security? :)
Can I believe it is secure?
For example, why it need connection to external services?
Thank you,
Vladimir
Hi,
I'd like to first thank the author for making such a helpful tool.
I was using it early this week and everything worked pretty well.
But today when I opened the add-on in my Google Doc, I found that I can no longer find the Insert button in the GUI. I tried different browsers and they all had the same problem. Besides, if I use the Highlight button, my code in the doc will be deleted instead of being highlighted. Is this supposed to be a bug? Please let me know how to fix it.
Thanks,
Jie
Can you add no syntax highlighting mode? It's a great fallback for unsupported languages or short snippets of language-agnostic values.
It was working few weeks back. now when i try to preview or highlight it it says "couldn't get theme"
Request: Can you add support for Arduino with all its keywords? see https://www.arduino.cc/reference/en/ for a list.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.