Giter Club home page Giter Club logo

gtksourceview-snippets-and-lang-specs's Introduction

GtkSourceView-snippets-and-lang-specs

GNOME's source viewer (Gedit and Builder) has code snippets plugin and builtin syntax highlighting specification but some are somewhat incomplete or lacking.
I know for python there is Gedi (Jedi) for autocompletion but I found that fidly to get working and I would rather no boxes pop-up over my work as I'm typing.

Python 3 Code Snippets

There are no code snippets for python 3 in Gedit there are a dozen Python 2 code snippets which can be transfered and they can work, so you don't need this

Minimum Goals

  • Implementing Python full grammer through nested snippets
  • Built-in function's snippet that try's to evaluate the values you put into the function if not provides comment with helpful info
  • Authoring snippet to add a header that makes this
  • Maybe som more features (please suggest)
  • Fast Comprehensions lists and dict
  • Fast selected text insertions to string, list, set
  • Binary Sequence Generator
  • I have one macro? called clamp that inserts a max and min nest maybe some more functions of that type

Future Goals

  • Built-in Constant where f goes to False and t goes to True on tab and so on
  • Built-in Type functions e.g. ". means string ]. means list and so forth
  • Built-in Exceptions at minimum you can Write lowercase and get Camel-ed cased Exceptions
  • Importable functions pre-packaged with python can be also be snippeted?

HTML Code Snippets

I have had a look at it, I'm not a web developer but I think it's handy if you can see all the attributes available to you in html context only. Meaning don't put in attributes that can be set/changed from CSS as that is what CSS is for. Also expand to every HTML5 tag instead of purly relying on div's and the id attribute.

Minimum Goals

  • HTML tag snippets
  • Complete tag attributes
  • Authoring snippets
  • Welcome to further suggestions

Python 3 Syntax Language Specification

This lacks in a few areas but the first one that comes to mind is python's literal formating strings the {variable} area should be a different colour to the rest of the string. Not really important but when doing binary, octal or hex representations with 0b, 0o and 0x those prefix should also have a different style to rest of the number. Furthermore with dictionaries if you have a string for both key and value then the key string should be styled differently to assist readability. Built-in functions, types and classes get syntax highlighting why can user defined ones also get this? It might be a limintation of the spec but if not I will implement that.

================

More to come

gtksourceview-snippets-and-lang-specs's People

Contributors

busterbeam avatar

Watchers

 avatar  avatar

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.