You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
g2384 80b85766e2 add status badge 3 years ago
.github add workflow (#46) 3 years ago
VHDLFiles squash commits; refactoring 5 years ago
tests indent after assignment symbol 3 years ago
.gitignore use jest 4 years ago
LICENSE Initial commit 6 years ago
README.md add status badge 3 years ago
VHDLFormatter.js indent after assignment symbol 3 years ago
VHDLFormatter.ts indent after assignment symbol 3 years ago
descriptiveCounter.js update packages (cont.) 4 years ago
descriptiveCounter.ts use system EOL symbol or user-specified 5 years ago
highlight.css initial commit 6 years ago
highlight.js initial commit 6 years ago
index.html beautify web settings area; add alignComments setting 4 years ago
jest.config.js use jest 4 years ago
main.js beautify web settings area; add alignComments setting 4 years ago
main.ts beautify web settings area; add alignComments setting 4 years ago
package-lock.json update dependencies 3 years ago
package.json update dependencies 3 years ago
style.css beautify web settings area; add alignComments setting 4 years ago
tsconfig.json support VHDL-2008 block comment /* */ 4 years ago

README.md

VHDL Fomatter

Online VHDL formatter written in Typescript

Try it here: https://g2384.github.io/VHDLFormatter/

Build Status: Main Branch


Run Locally

Simply download/clone this repository, and open the index.html file.


Contribute

Structure

  • index.html: html + javascript. Collect settings from UI, call the beautify function, load/save/update cached settings.
  • main.ts: typescript. Some code required by index.html are moved here.
  • VHDLFormatter.ts: typescript. Define classes, format VHDL code
  • tests: folder. Contain all test files
    • *.test.ts: typescript. Proper test files.
    • VHDLFormatterUnitTests.ts: typescript. Handcrafted, crude tests.
  • VHDLFiles: vhdl. Contain complicated VHDL files which I don't want to lose.

Develop

Use Visual Studio Code to open the repo folder.

Run Tests

Tests must be run before each commit.

Run Unit/Integration Tests

  1. open repo folder with Visua Studio Code
  2. click Run (Ctrl + Shift + D)
  3. select Run Unit Tests configuration
  4. click Start Debugging button

Run Jest Tests

  1. open repo folder with Visua Studio Code
  2. click Terminal -> Run Task...
  3. select npm: test jest