Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Chapel support to Google prettify #6501

Closed
1 of 2 tasks
bradcray opened this issue Jun 20, 2017 · 18 comments
Closed
1 of 2 tasks

Add Chapel support to Google prettify #6501

bradcray opened this issue Jun 20, 2017 · 18 comments

Comments

@bradcray
Copy link
Member

bradcray commented Jun 20, 2017

As I understand it from StackOverflow's markdown help page, if we were to add Chapel support to Google's prettify, we'd get syntax highlighting for code on StackOverflow which seems very attractive.

TODO:

  • verify that the above is true
  • create and submit Chapel support to prettify
@ronawho
Copy link
Contributor

ronawho commented Jun 20, 2017

Related to #5908

@victor-ludorum
Copy link
Contributor

victor-ludorum commented Dec 17, 2017

@bradcray Hello!! I want to work on this issue . Kindly guide me ..

@bradcray
Copy link
Member Author

Hi @victor-ludorum : I'd be very happy to see this done, but I don't know enough about Google prettify to be able to provide very deep guidance beyond some simple pointers. However, they look like they have pretty good documentation about how to add new languages in their README, and a common approach is to find an existing language that is sufficiently similar to Chapel and follow its example. That's how I'd start into this anyway. It may also be useful to look at other tools that support Chapel highlighting, several of which are noted in issue #5908.

@victor-ludorum
Copy link
Contributor

Thanks sir for your suggestion 😊 .

@bradcray
Copy link
Member Author

Hi @victor-ludorum : Thanks for your PR for this. I'm not sure what it will take for it to be merged to Google prettify—they seem to have quite a backlog. Have you come across any documentation indicating steps that should be taken to get PRs to their repository reviewed and merged?

@victor-ludorum
Copy link
Contributor

@bradcray Yes sir , I have signed Google Contributor License Agreement (CLA) as mentioned there .

@ghost
Copy link

ghost commented Jan 20, 2018

@victor-ludorum Hey friend, I think you have missed the keyword 'sync'. I've reviewed that in your PR.

@victor-ludorum
Copy link
Contributor

Thanks @aditmehta9 for specifying . I have added it 😊

@krishnadey30
Copy link
Member

krishnadey30 commented Mar 15, 2019

@bradcray I checked the google prettify github. They also say prettify is used by Stackoverflow.
image

  • verify that above is true

I would like to take this issue.

@krishnadey30
Copy link
Member

@bradcray I have created a PR googlearchive/code-prettify#588

@bradcray
Copy link
Member Author

Hi @krishnadey30 : Unfortunately, there's already a PR for this as noted, albeit somewhat subtly, in a comment above:

googlearchive/code-prettify#518

Unfortunately, it's been open for over a year now with no action on it. I'm not sure how to get the process unstuck, so filed an issue requesting Chapel support to the code-prettify repo recently:

googlearchive/code-prettify#587

But that hasn't resulted in any action either. It might be worth comparing your implementation to the previous to see how they compare.

I mostly don't know how to move this forward if the code-prettify maintainers don't choose to act on it.

@krishnadey30
Copy link
Member

@bradcray Sorry for not checking the message properly. I checked it now. I went through the PR and found that some changes are needed.
For eg: null is used instead of nil. Keywords and types are mixed.
@victor-ludorum It will be good if you can update the PR.

Shall I close my PR?

@bradcray
Copy link
Member Author

I think we should do what we can to only have one best PR open so that reviewers on the code-prettify team who don't know Chapel will not have to choose between them and guess which is better; but it doesn't really matter to me which one is open. I would guess that we've added some keywords to the language since Victor opened his, so imagine that the best PR might be a blend of the two?

@krishnadey30
Copy link
Member

@bradcray I will once check @victor-ludorum PR properly and will update my files if I missed something.

@ben-albrecht
Copy link
Member

We have 2 open PRs and 1 open issue (googlearchive/code-prettify#587) on code-prettify repo. We might need to ping some maintainers to get a review, as the repo seems pretty inactive lately.

What's our game plan for reducing our 2 PRs into 1 that we feel comfortable requesting a review on?

PRs:

@krishnadey30
Copy link
Member

Hey @ben-albrecht I will try to modify the PR

@bradcray
Copy link
Member Author

bradcray commented Sep 24, 2020

It looks as though StackOverflow has moved away from Google Prettify due to lack of support and active development (as we've experienced). So I'm closing this issue in favor of #16454.

@bradcray
Copy link
Member Author

Thanks to @victor-ludorum and @krishnadey30 for wrestling with this, and sorry to set you up for frustration (I'm frustrated by it as well).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants