GithubHelp home page GithubHelp logo

More languages about web HOT 11 CLOSED

vscodethemes avatar vscodethemes commented on June 13, 2024
More languages

from web.

Comments (11)

hectormz avatar hectormz commented on June 13, 2024 3

This is 14 lines and should demonstrate the color schemes. How would multi-select look?

import os

"""A string"""

# A comment

class Foo(object):
    def __init__(self):
        bar = 42
        print(bar)
	
	@property
	def color(self):
		return 'Green'

from web.

anshulxyz avatar anshulxyz commented on June 13, 2024 3

Languages I'd like to see this project support:

  • Go
  • Rust
  • Swift

from web.

jschr avatar jschr commented on June 13, 2024 2

Python will definitely be one of the next languages. Do you have any suggestions for the snippet to display in the preview? It would ideally by the same number of lines as the current preview (14).

I'm also thinking something similar for the drop-down. Maybe even a multi-select.

from web.

jschr avatar jschr commented on June 13, 2024 2

The new site now supports 4 more languages: Python, Go, Java and C++.

Thanks @hectormz for the Python example, I ended up using it!

I've opened separate requests for C#, Rust, Swift and Kotlin.

from web.

hectormz avatar hectormz commented on June 13, 2024

I'd like to see Python. Maybe create a drop-down list of languages at the top of the site, and remove the tabs of languages that are included in each demo (at least for the dashboard showing all the themes).

from web.

jschr avatar jschr commented on June 13, 2024

This is great, thanks for doing that.

With a multi-select you could pick up to 3 languages to replace the current tabs. Still very much in the idea phaseβ€”open to suggestions!

Look-wise, a dropdown (or modal) with something like:


  • CSS
  • HTML
  • Javascript
  • Python
  • ...

[DONE]


from web.

hectormz avatar hectormz commented on June 13, 2024

That would be nice, the list wouldn't get too long because you're limiting the breadth of languages as you mention in the first comment?

from web.

jschr avatar jschr commented on June 13, 2024

Yeah, there is a finite number of languages I can support. The languages that are added will be based on demand and help from the community. After adding a few more I'll have a more defined process for adding one that should make it easier for others to contribute.

from web.

mdsitton avatar mdsitton commented on June 13, 2024

I would suggest C# as well πŸ‘

from web.

kylepeeler avatar kylepeeler commented on June 13, 2024

Would love to see Javascript include JSX syntax within it, or a seperate JSX/React option.

from web.

divinedragon avatar divinedragon commented on June 13, 2024

Java and Kotlin as well, please. Below are example snippets for FizzBuzz.

public class FizzBuzz {

  public static void main(String[] args) {
    int num = 100;
    for (int i = 1; i <= num; i++) {
      if (((i % 5) == 0) && ((i % 7) == 0))
        System.out.println("fizzbuzz");
      else if ((i % 5) == 0)
        System.out.println("fizz");
      else if ((i % 7) == 0)
        System.out.println("buzz");
      else
        System.out.println(i);
    }
  }
}
fun fizzBuzz(num: Int): String {
    return when {
        (num % 3 == 0) -> "Fizz"
        (num % 5 == 0) -> "Buzz"
        (num % 3 == 0 && num % 5 == 0) -> "FizzBuzz"
        else -> "$num"
    }
}

from web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.