Re-enabling the code warning popup

Hopefully it will remind a few users to use triple-backtick to quote code.
Please let me know if it breaks anything.

1 Like

test post

case EVENTID(BUTTON_NONE, EVENT_PUSH, MODE_ON):
  // Delay Force Push from previous Push
  if (millis() - last_push_ > 2000) {
    if (SFX_push) {
      hybrid_font.PlayCommon(&SFX_push);
    } else {
      hybrid_font.DoEffect(EFFECT_FORCE, 0);
    }
    last_push_ = millis();
  }
  return true;

edit.
That formatting was automatic. interesting.

// Crystal Chamber
StylePtr<Layers<
StyleFire<Red,OrangeRed,0,2,FireConfig<0,1500,0>,FireConfig<3000,0,0>,FireConfig<0,5000,10>,FireConfig<0,0,5>>,
TransitionEffectL<TrConcat<TrInstant,White,TrFade<200>>,EFFECT_IGNITION>,
TransitionEffectL<TrConcat<TrInstant,White,TrFade<200>>,EFFECT_BLAST>,
LockupL<AudioFlicker<OnSpark<StyleFire<Red,OrangeRed,0,2,FireConfig<0,1500,0>,FireConfig<3000,0,0>,FireConfig<0,5000,10>,FireConfig<0,0,5>>>,White>>,
TransitionEffectL<TrConcat<TrInstant,White,TrDelay<40>>,EFFECT_CLASH>,
LockupTrL<StaticFire<Mix<TwistAngle<>,OrangeRed,DarkOrange>,Mix<TwistAngle<>,OrangeRed,Orange>,0,3,5,3000,10>,TrConcat<TrWipeIn<100>,BrownNoiseFlicker<Red,Black,300>,TrExtend<1000,TrFade<3000>>,Mix<TwistAngle<>,Red,Orange>,TrFade<3000>>,TrWipe<200>,SaberBase::LOCKUP_MELT>,
InOutTrL<TrFade<300>,TrFade<500>,Pulsing<Layers<
AlphaL<Red,CircularSectionF<Saw<Int<20>>,Int<3000>>>,
SparkleL<White,7>>,Red,3000>>

(),

BladeConfig blades = {
{ 0,
WS281XBladePtr<123, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), // Main Blade 1
WS281XBladePtr<123, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin4, bladePowerPin5> >(), // Main Blade 2
WS281XBladePtr<4, blade3Pin, Color8::GRB, PowerPINS >(), // Crystals
WS281XBladePtr<5, blade4Pin, Color8::GRB, PowerPINS >(), // Sides
CONFIGARRAY(preset),
“00_2ndSisterSave”},
};

I get no warning. Not sure what triggers it though or what I’m looking for.

Another Test Message:

Hi, I need some help please :frowning:

void coolCode() {
std::cout << “doStuff” << std::endl;
}

EDIT: Nope, nothing there… (obviously not formatted and no warning)

Insert random code here? Cool…

Test 1: Style code:

LockupTrL<
AlphaL<
TransitionEffect<
Stripes<
2000,
4000,
RgbArg<STAB_COLOR_ARG,Rgb<255,255,255>>,
Mix<
Sin<Int<50>>,
Black,
RgbArg<STAB_COLOR_ARG,Rgb<255,255,255>>
>,
Mix<
Int<4096>,
Black,
RgbArg<STAB_COLOR_ARG,Rgb<255,255,255>>
>
>,
Stripes<
2000,
3000,
RgbArg<STAB_COLOR_ARG,Rgb<255,255,255>>,
Mix<
Sin<Int<30>>,
Black,
RgbArg<STAB_COLOR_ARG,Rgb<255,255,255>>
>,
Mix<
Int<8192>,
Black,
RgbArg<STAB_COLOR_ARG,Rgb<255,255,255>>
>
>,
TrExtend<
4000,
TrInstant
>,
TrFade<4000>,
EFFECT_LOCKUP_BEGIN
>,
SmoothStep<
Scale<
TwistAngle<>,
IntArg<MELT_SIZE_ARG,28000>,
Int<30000>
>,
Int<3000>
>
>,
TrWaveX<
RgbArg<STAB_COLOR_ARG,Rgb<255,255,255>>,
Int<200>,
Int<100>,
Int<200>,
Int<32768>
>,
TrWaveX<
RgbArg<STAB_COLOR_ARG,Rgb<255,255,255>>,
Int<200>,
Int<100>,
Int<200>,
Int<32768>
>,
SaberBase::LOCKUP_MELT,
Int<1>

,

Test 2: C++ Code:

  void SetStyle(BladeStyle* style) override {
    // current_style should be nullptr;
    current_style_ = style;
    if (current_style_) {
      current_style_->activate();
    }
  }

Test 3: Bubbles!

[[
Ff-dk
fhgffgk
]]

so, It prompted me to do the ``` thing. It only asked for the C++ code, though. It didn’t require it for the Style code, or my gibberish (probably is just jibberish)

It looks like it TRIED to auto do it for the Style code, but only got the last ,