MCPcopy Index your code
hub / github.com/armhil/easy-code-formatter-styles

github.com/armhil/easy-code-formatter-styles @1.2.17

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.2.17 ↗ · + Follow
7 symbols 16 edges 263 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

easy-code-formatter-styles

Main CI | Build, Test and NPM Publish Code coverage

Since the original release of Easy Code Formatter, I've received a lot of requests around extending the support for the styles and this is an attempt to do that.

When you send a PR, the pipeline will automatically bump the package.json version if it's not bumped.

How to add a new style

Add a new .ts file with your style name which implements the ITheme interface - export it the same way the rest of the styles are being exported. Don't forget to add it to the index.ts file. Make sure to run

npm run build
npm test
npx eslint .

Once merged to main, it'll be built and published to npm and deployed afterwards with easy code formatter.

About Easy Code Formatter

Easy code formatter is a Microsoft Word add-in that allows people to style their text in word as code. You'll have to be at least on Word 2013 to use this addin.

You can download it from AppSource.

Formatted code with Default style. with Desert style
Formatted code with A11YDark style. with A11YLight style

Extension points exported contracts — how you extend this code

IStyle (Interface)
(no doc)
src/themes/ITheme.ts
ICodeStyle (Interface)
(no doc)
src/themes/ITheme.ts
ITheme (Interface)
(no doc)
src/themes/ITheme.ts

Core symbols most depended-on inside this repo

MergeStyleProperties
called by 3
src/themes/index.ts
GetLineNumberStyle
called by 1
src/themes/index.ts
GetBackgroundStyle
called by 1
src/themes/index.ts
GetGenericStyle
called by 1
src/themes/index.ts

Shape

Function 4
Interface 3

Languages

TypeScript100%

Modules by API surface

src/themes/index.ts4 symbols
src/themes/ITheme.ts3 symbols

For agents

$ claude mcp add easy-code-formatter-styles \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact