Giter Club home page Giter Club logo

code-editor-scripts's Introduction

code-editor-aides

Code editors are useful, and they can be made even better with text filters and scripts. Here are some of mine.

Requirements

  • A code editor that allows text filters (ex. BBEdit).
  • The scripting language needed by the script.
  • To run these as-is, you'll need the Mac OS

To Install or Uninstall

You'll need to know where your code editor stores text filters.

In the Mac OS, this will probably be under Library > Application Support. (To reach the Library folder, when in the Finder, select Go and hold down the Option key. The Library folder will appear as an option to select right under "Home" and above "Computer", not quite halfway down the list.) Once in the Application Support folder, look for the folder that has the name of your code editor, such as BBEdit or TextWrangler, which has a folder called "Text Filters" where it allows such scripts.

To install, put the uncompressed file in that folder. To uninstall, remove it the file from that folder. (You can add sub-folders to that folder for storage; the filter will still be accessible in BBEdit or TextWrangler.)

I have no idea where these would be stored in Windows or Linux.

HTML Entities and Special Characters - folder

PHP edition

  1. Convert Special Characters to HTML Entitities.php
  2. Convert HTML Entitities to Special Characters.php
  • Requires: PHP 4 or later

Python edition

  1. Convert Special Characters to HTML Entitities.py
  2. Convert HTML Entitities to Special Characters.py
  • Tested in: Python 2.7.10 & Python 3

About the Script(s):

  • Purpose: convert HTML entity codes to special characters, or special characters to HTML entity codes
  • Function: Takes selected text or active document and converts accordingly.
  • Usage Suggestion: Connect it to a keyboard command on your code editor.
  • Notes: This includes all HTML entities I could find in the dev charref on W3.org, as of 2016. I considered combining both scripts into one, where the filter could ask the user which they wanted, but splitting it is more efficient in my workflow. Setting up a keyboard-capable 2-in-1 version might be a future project, but that would necessarily add an extra keyboard command per run, to specify which direction you want to go in.

code-editor-scripts's People

Contributors

carradee 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.