element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Feedback and Support
  • Community Hub
  • More
Feedback and Support
F&S Forum Formatting of VHDL in code box
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
200 X-Frame-Options: SAMEORIGIN Content-Security-Policy: frame-ancestors 'self'; X-UA-Compatible: IE=Edge X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff X-Telligent-Evolution: 12.x Pragma: no-cache Connection: close Accept-Ranges: bytes Cache-Control: no-store, no-cache, max-age=0 Date: Wed, 21 Jan 2026 07:12:34 GMT ETag: "0x8DE317E31FF1C26" Set-Cookie: .te.csrf=TaEPkTfDxifjrd108MRe-AigOLHd6bx5QK3LN2yfQWk; path=/; secure; SameSite=Lax Set-Cookie: .te.auth=_L4H2hFrCLoZS5VePGfkfr%2bfeD0xPuDg1EINp%2bIGzTPHZKuxEYQM%2fT%2f%2bo%2bwFkDhOYUOqqYfY90ZTwjgYUB3vet65AM1EHPcfp8UIyvHbinfkX17qDMA%2f%2bPhYDuIOffK3vgKEw%2f1F8oDlLaYR%2fcxTrznw37mnyA9nRiHr9mNQTiKSQ83ix7N6R2PPGl937ScsQ0Ady4IFt%2fou3XZnkssDGzGYzRBQ28j2x2AIjDpQ%2fBBhcjCZ5FiIv87DQ4N1iSJWPVhBjO6lPPNEZs0Slb8ihvQ%3d%3d; path=/; secure; HttpOnly; SameSite=Lax Set-Cookie: e14Guest=1; expires=Fri, 31-Dec-9999 23:59:59 GMT; path=/; secure; HttpOnly Set-Cookie: e14Country=NL; expires=Fri, 31-Dec-9999 23:59:59 GMT; path=/; secure; HttpOnly Set-Cookie: e14Language=en; expires=Fri, 31-Dec-9999 23:59:59 GMT; path=/; secure; HttpOnly Set-Cookie: e14TimeZone=Etc/UTC; expires=Fri, 31-Dec-9999 23:59:59 GMT; path=/; secure; HttpOnly Server-Timing: cdn-cache; desc=MISS Server-Timing: edge; dur=35 Server-Timing: origin; dur=50 Server-Timing: ak_p; desc="1768979554763_1611673656_188036094_8495_11490_6_17_-";dur=1 Strict-Transport-Security: max-age=86400 ; includeSubDomains ; preload #set ($UserId = $core_v2_user.Accessing.Id) #set ($Roles = $core_v2_utility.MakeList('Moderators', 'Almost Admins', 'Administrators')) #set ($IsAdminLike = $e14_utils.IsUserInRoleOrAdmin($UserId, $Roles)) #if($IsAdminLike == 'False') #end
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Locked Locked
  • Replies 3 replies
  • Subscribers 16 subscribers
  • Views 501 views
  • Users 0 members are here
  • Content Creation
Related
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Formatting of VHDL in code box

jc2048
jc2048 over 2 years ago

Is it possible to do anything about the way VHDL code appears when formatted as text in a code box?

What appears like this, in Lattice Diamond's code editor, all nicely formatted and with appropriate colour
highlighting

image

ends up like this when pasted as text in a code box on element14

image


The 'code box', or whatever the technical name for it is, seems to strip all bar one whitespace character and
leaves otherwise readable code a lumpen mass that's difficult to understand, even when you're the person who
wrote it.

I know tabs are difficult, but even if I replace them with spaces the code box still messes it up.

  • Cancel

Top Replies

  • cstanton
    cstanton over 2 years ago +1 verified
    Hi jc2048 , Thanks for reaching out to us about this issue with VHDL code formatting in the code box. I understand how frustrating it can be when the code formatting gets messed up and makes it difficult…
  • cstanton
    cstanton over 2 years ago in reply to jc2048 +1
    Oh, okay. Thanks for the update, glad it was resolved.
  • cstanton
    +1 cstanton over 2 years ago

    Hi jc2048 ,

    Thanks for reaching out to us about this issue with VHDL code formatting in the code box. I understand how frustrating it can be when the code formatting gets messed up and makes it difficult to read and understand.

    To clarify, it sounds like the issue is that the code box is not preserving the tabbing and spacing of the code when it is pasted in. Is that correct?

    I will have to raise this with the development team to see if there is anything we can do to improve the formatting of code in the code box. However, I can't promise any immediate solution for this.

    On another note, we'll be moving to version 12.1.4 of Verint soon, and this may change the text editor and how it functions. This may also affect how the code box operates, so we'll have to wait and see.

    Thanks for bringing this to our attention, and we appreciate your patience and understanding as we work to resolve this issue.

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • jc2048
    0 jc2048 over 2 years ago in reply to cstanton

    I've just been experimenting with it. I'm wrong. The code box itself is fine.

    What I was doing wrong was, I was copying and pasting my code into the main editor box, selecting it and then asking for the selected text to be a code box. But at that stage, the editor has already stripped out the white space.

    If instead I create a code box first, and then paste into the code box itself, it works and retains the formatting, both with spaces as whitespace and with tabs as whitespace.

    So it's my not properly understanding how the editing works and how we should be using it. Does this perhaps go back to how it was done with the Jive system? Or is it something I've made up for myself? Anyway, now I understand, I can go back and rectify the blogs where it's a problem.

    Thanks for your help and sorry it was a bit of a wild goose chase.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • cstanton
    0 cstanton over 2 years ago in reply to jc2048

    Oh, okay. Thanks for the update, glad it was resolved.

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube