Jump to content

Featured Replies

Posted
  • Community Expert

I'm curious to know if the upcoming Invision Community 5 will include enhanced features in its editor, specifically regarding syntax highlighting. Will there be support for the latest standards across various programming languages, such as C++20 for C++ and similar updates for other languages? Looking forward to any insights or updates on this functionality.

Solved by Marc

Go to solution
  • Author
  • Community Expert

Yes, exactly.

Only the latest syntactic elements of languages, for example, constexpr, unique_ptr, auto, type: char8_t etc. 

Edited by PanSevence

  • Author
  • Community Expert
#include <iostream>
#include <memory>
#include <cstdint>

struct Test {
    int32_t value;
    constexpr Test(int32_t v) : value(v) {}
};

constexpr int32_t computeValue(const Test& t) {
    return t.value * t.value;
}

int main() {
    auto ptr = std::make_unique<Test>(10);
    int32_t computedValue = computeValue(*ptr);

    std::cout << "Computed value: " << computedValue << std::endl;

    return 0;
}

Yes, for example, highlighting for standard library keywords like `make_unique`, `int32_t`, etc.

  • Author
  • Community Expert

Do you plan to add a button in code that would allow copying the code? It would be a very useful feature.

  • Community Expert

Im not sure I understand what you mean there, to be honest. I mean, you can already just right click and copy

  • Author
  • Community Expert

I mean clicking the button and immediately copying the entire block of code without selecting it.

Recently Browsing 0

  • No registered users viewing this page.