GithubHelp home page GithubHelp logo

dwarvesf / codeviewer Goto Github PK

View Code? Open in Web Editor NEW
138.0 138.0 16.0 2.3 MB

A custom code editor SwiftUI view

License: MIT License

Swift 30.68% JavaScript 67.53% HTML 1.80%
codeviewer ios macos swift swiftui

codeviewer's People

Contributors

l1cardo avatar phucledien avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

codeviewer's Issues

A demo project

Can you provide a demo project because this package did not for me.
There is nothing, after I run the app.
Thanks!
image
image

Content should be a @State variable

The content should be a @State variable, and then we can use it like this.

@State private var json = ""
	
var body: some View {
	CodeViewer(content: $json)
	.onAppear {
		json = """
		{
			"text": "hello world"
		}
		"""
	}
}

iOS support

It seems that this package does not support iOS.
image

Code Wrap

Really sorry to bother you,but it will be cool if there is a code wrap, because my phone screen is small and I don't want to scroll horizontally.

屏幕录制2020-09-07 下午3 41 45 2020-09-07 15_43_08

Theme import

In the README it is stated that themes can be imported but I do not see an option for that. How can this be done?

How can I generate the ace.bundle myself?

I'm really curious as to what the bundling process for ace the package to the .bundle that you ship with the package is. Is there a script to generate the bundle?

My specific use case is to bundle my own customized version of ace.

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.