Solved

Code widget

  • 5 November 2021
  • 1 reply
  • 18 views

 

 Hi Insided Community,

 

I was excited to use the code widget of the editor but so far I’m unable to make it work, or I’m afraid that’s what it is. Am I missing something or the code widget is just a grey background and red font ? What are the languages that work well ?

See below a few code examples:

Javascript

const listaRealmTrovata = async () => {
await axios.get(APICALL1)
.then((realmUserAttivi) => {
axios.get(APICALL2)
.then((realmAttivi) => {
realmUserAttivi.data.map((realmUserAttivo) => {
realmAttivi.data.filter((res) => {
if (realmUserAttivo.realm.id !== res.id) {
setListaRealm(previousListRealm => [...previousListRealm, { value: res.id, label: res.realmId }]);
}
})
})
})
})
};

Java

fusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(this)

locationManager = getSystemService(LOCATION_SERVICE) as LocationManager

val locationListener: LocationListener = this
locationManager.requestLocationUpdates(
LocationManager.GPS_PROVIDER, 2000, 0F, locationListener
)

CSS  (good)

#slides ::content img {
width: 25%;
float: left;
}

HTML (good)

<template>
...
<div class="inner">
<content select="img"></content>
</div>
</template>

 

icon

Best answer by tom.shaddock 8 November 2021, 15:20

View original

1 reply

Userlevel 5
Badge +1

Hey @NathanR sorry to hear about these limitations with the code editor functionality that you’ve been running into - yep it looks like the colour rendering for both Java + Javascript could certainly be improved. Unfortunately I was not able to get a better result that the one you got despite best efforts to.

I was wondering if you could submit this to the https://community.insided.com/ideas board for consideration? I’ve already notified the correct the product team internally regarding the current colour limitation too, perhaps we can think about this when making the next changes to the text editor. Hope that’s ok! :slight_smile:

Reply