Source code annotation tool [closed] - javascript

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm looking for a tool with which I can annotate source code.
I have some 3rd party source code (JavaScript) I need to understand and I don't want to change it (add inline comments) so that
line numbers can stay intact (for communication with others),
I can avoid accidentally changing something and
my annotations stand out compared to the authors comments.
Normally I would print the whole thing out an scribble on it, but the code is too long for that and I need to share it per email. I would be great if one could do some like that including being able to create "links" between so places in the code, possibly even visually with a lines or arrows.

If you would usually print it (if it were shorter), why not print it to a PDF and then use a PDF viewer that supports comments, like Foxit Reader? :)

I would use email to comment and pastebin to host and highlight #h# lines with links in the email text.
OR
some code-review tool (like codestricker or reviewboard for example)

You can certainly do what you want to with LaTeX and its listings package. But if you are not already a LaTeX user you might think that a hard way to go.

start a github project and post the code there, github includes annotation abilities OOB.

You have difficult requirements. I don't know of such tool. Nevertheless as a more general purpose tool, I can recommend Yui Doc (download here).

I'd build a glamour browser for it. (If spending half a day building it wouldn't be too much).
[edit]
Glamour is a toolkit for building browsers on a model. The model would here consist of the various parts of the file(s) and the comments and attributes you'd like to add. This would allow you to easily navigate through the source and comments, to select only parts with (or without) certain attributes. There is a video and slides. Official page, Source

How about using google wave with syntaxy (http://wave-samples-gallery.appspot.com/about_app?app_id=14008) bot?

Related

PDF to Editable Documents [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I just want to ask if there is any resource which can do PDF to Editable Document conversion like in Word, Excel or powerpoint. Let me know if it is possible. My preferred architecture is NodeJS or Javascript. I have done following research:
Reading the .pdf in binary and extracting all information then creating the document according to that but it is a very long term solution.
I want to do the conversion in editable way so i don't want to do it using images mapping.
Do share if there is any paid resource available, and it must not be an API because i need to give offline support.
Regards
Ali Muqaddas
You can use unoconf (https://github.com/gfloyd/node-unoconv) for that.
Example from the library README:
unoconv.convert('document.docx', 'pdf', function (err, result) {
// result is returned as a Buffer
fs.writeFile('converted.pdf', result);
});
I don't think there is a clear solution for this.
I have also been looking for the same thing. I have found these 2 APIs that allow for this, but I'm looking for something offline too.
Nonetheless, these APIs might be useful for you or maybe they are exactly what you have been looking for.
PDFTron - Limited documentation and kinda unclear. I tried to work with this a couple of times but never managed to get it working, but if you can seeing from their demo, the results look really nice.
ASPOSE - Offers a free tier demo license, however, the conversion is a bit...weird. Meaning no images just text, therefore, the padding and margin are way off.
Doing the opposite is easy and FREE! (DOCX -> PDF), however, (PDF -> DOCX) seems to be (1) Expensive and (2) Impossible to implement offline.

Can two people work on the same javascript project simultaneously? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
me and my friend have this develop a game in 18 hour competition on friday, and we have to use javascript (I don't know why) and it isn't very pleasant to work on the same project from two computers and exchange code over a network share folder, is there any way to have a sort of Google docs for javascript coding? Where we can both edit the same document in real time from two different computers? Any time appreciated.
You're referring to "version control".
A good tool (usually the de-facto) for that is Git.
You can then push your code to something like GitHub.
Lots of stuff you can do with this... You can both have individual branches, push them to GitHub, and then "diff" them, meaning you can see individual changes line-by-line and decide what you want to keep or discard. These can be merged to, say, a master branch which represents your final product.
use some sort of source control! Github is an excellent site to use GIT with. Other options include, but are not limited to, SVN and mecurial
SVN, GitHub, TFS are good tools for source control. They will also provide you the ability to check in/check out so that things can be merged in the background. So, if you and your friend are working on the same file and both commit the changes, they would be merged together. However, if you're wanting to see your buddies changes as he types, you're going to need to write something to do this. If you want this type of functionality, there's a cool library out there called signalR (http://signalr.net/). This may be a little overkill but I don't know any text editors out there that will allow you to see someone elses changes as they type. You could probably spin something up with ajax calls but again, that would be overkill and performance would be an issue.

javascript code formatter and highlighter [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I am looking for a jQuery plugin that can take a string of code as input and will apply formatting and Highlights to make the code easily understandable. Just like jsfiddle.net.
As of now I have found many sites like jsbeautifier.org.. But I need a standalone jquery plugin which can process my code
Please help me on this.
9 useful Javascript syntax highilghting scripts. There, I googled it for you. 3 of them are jQuery-based.
i am using codemirror. http://codemirror.net/
its easy and cool.
I use Highlight.Js
If you want to change the syntax in a specific style or just check the style than take a look at code painter
A JavaScript beautifier that can both infer coding style and transform
code to reflect that style. You can also set style preferences
explicitly in a variety of ways.
you can use jstidy for this. and if you are using visual studio, you can directly copy code and paste in to the designer view. it will generates the required styles.
I have checked the pages linked by other answers and found them very lacking.
After a bit of research and scouring the web, I found one that I think clearly is superior to the rest.
Snippit is jQuery based, including "copy" feature (with clipboard plugin), line-numbers, custom styles, etc.
Let me know what you think.

looking for a wysiwyg editor with some particular features [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Not entirely sure if something like this exists or not. If it does, im at a loss as to what to search for to find it.
I need an inpage/inline (jquery?) wysiwyg editor with templating, so i can load in a basic (preferably uneditable) layout, that the user then fills in.
Image uploading and gallery. So a user can either upload a picture, or insert one from a selection within a gallery.
Ability to convert the contents for storage and retrieval in db (if its all text/html), or even better a way to save the entirety as a flattened image.
I know this is a tall order, but ive seen the individual pieces in different editors, but not all in one. Perhaps im searching for the wrong thing, but any help here would be great.
I have recently used ckeditor and as far as I can see it it is capable of doing everything you need:
Templating: No problem, see Templating
Image Uploading: Possible. It's described here. Though they use an own (not free) file manager AFAIR. But writing a simple file browser with jquery isn't really a hard task (see jQuery file tree as a simple example). You just need to integrate it with the ckeditor file upload dialog (but all this is described in the docs quite well). Of course you can also spend some money in order to use their file manager and don't worry about integrating your own.
Storage: CKEditor creates pure HTML markup. I don't know why there should be a problem storing this markup in your database of choice.

Any good javascript BBCode parser? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
Currently i'm parsing bbcode server side but i'd like to show a preview just like this site does.
If I process the bbcode serverside using ajax it's a bit laggy, so i thought doing it client side, to just show the preview.
Do you guys know any bbcode parser written in javascript?
It is a bit late, and the question has certainly been answered. However if you are still open to suggestions, and have not yet spent your time converting the indicated parser from C# to JavaScript, I have written a parser (originally in PHP) which I converted myself[2] to JavaScript. It is available at bitbucket under the 3-clause BSD license. The parser seems to be reasonably fast, but I haven't performed any analysis on its speed.
It may not be as flexible in some ways as other possible projects out there, but it does allow defining your own codes ("bb-code" or not, with quite a few properties), and is also all contained within the one file. This is not a simple find-and-replace parser, and is not based on regex.
If this is of any interest to you, it might save you from having to convert that other library. Technically, I'm a relative "unknown", but that's the great things about JS/OSS: you can check out the source to see what I've done.
[2] As a result, there are a few remaining "compatibility functions", but I rewrote things which had native equivalents available.
I haven't personally used any Javascript BBcode parsers, but the top two Google results (bbcodejs and this blog post) seem pretty weak. The former only seems to support simple find-and-replace, and the latter seems to have pre-set BBcode built in, so you'd probably have to hack it a bit if you chose that solution.
Your best options are probably to roll your own solution (possibly basing your work off one of the two links here), or just use AJAX and move on. That's probably the best way to ensure that previews are accurate, and previewing doesn't have to be real-time on every keypress, anyway; a delay before even sending the request is acceptable.
I encountered the same problem, so I wrote my own. That supports BBCode -> AST Array -> any kind of markup, now supports HTML and React. And has plugins and presets support
https://github.com/JiLiZART/bbob

Categories

Resources